.container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 1.5rem 0;
}

main {
  margin-bottom: 6rem;
}

body {
  font-size: 18px;
}

h2 {
  font-weight: bold;
  font-size: 30px;
  margin-bottom: 0;
}

h3 {
  font-size: 30px;
}

i {
  margin-right: 8px;
}

hr {
  border-top: 1.5px solid #d4af37;
  width: 104px;
  margin: 0.5rem auto 1rem;
}

form {
  max-width: 100%;
}

/* ****************** */
.header {
  text-align: center;
  width: 50%;
  margin: 0 auto 4rem auto;
}

.header p {
  margin: 0 auto;
  max-width: 500px;
}

/* main div with div for form and contactus with background image */
.main {
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
    url("../../kepek/szobak/kert_12.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 959px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 4rem 0;
  overflow-x: hidden;
}

/* Contact div contain map, contact us and form */
.contact {
  background: #ffffff;
  border-radius: 5px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(931px, calc(100% - 2rem));
  max-width: 931px;
  min-height: 719px;
  margin: auto;
  padding: 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

.contact-map {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 5px;
  background: #f7f1e8;
  box-sizing: border-box;
  order: 1;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  order: 3;
}

.contact-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid #333333;
  box-sizing: border-box;
  border-radius: 4px;
  margin: 1rem 0;
  padding: 16px 20px;
  width: 100%;
}

.form-control::placeholder {
  font-family: "Source Sans Pro", sans-serif;
}

.form-control:focus {
  border: 1px solid #d4af37;
  outline: none;
}

#elkuldomEmailbenEmail,
#elkuldomEmailbenName,
#email,
#name {
  width: 45%;
  height: 58px;
}

#elkuldomEmailbenMessage,
#comment {
  height: 260px;
  resize: vertical;
}

/* the input mail and name from form */
.contact-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contact-us {
  flex: 0 0 37%;
  width: 37%;
  min-width: 280px;
  min-height: 390px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.68)),
    url("../../kepek/szobak/utca_lisbetCottage_Oldal_07.jpg");
  background-position: center top;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  padding: 2rem 0;
  box-sizing: border-box;
  order: 2;
}

.contact-us > span,
.contact-us h3 {
  margin-left: 1.7rem;
  margin-right: 1.2rem;
}

.contact-us > span {
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}

.contact-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-right: 12px;
  color: #d4af37;
}

.contact-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-us strong {
  font-size: 16px;
}

.contact-us a {
  color: white;
  text-decoration: none;
}

.contact-us a:hover,
.contact-us a:focus-visible {
  text-decoration: underline;
}

.btn {
  font-size: 16px;
  padding: 0.8rem 1.8rem;
  background-color: #d4af37;
  color: white;
  border-radius: 5px;
  border: none;
  font-family: "Source Sans Pro", sans-serif;
  cursor: pointer;
}

.hide {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media only screen and (max-width: 1000px) {
  .contact {
    width: min(931px, calc(100% - 2rem));
  }

  .contact-us > span {
    margin-left: 1rem;
    font-size: 14px;
  }

  .header {
    width: 60%;
  }
}

@media only screen and (max-width: 850px) {
  .main {
    min-height: auto;
    padding: 3rem 0;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 1.5rem;
    min-height: 90%;
    width: 80%;
  }

  .contact-map {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
    order: 1;
  }

  .contact-us {
    flex: 0 0 auto;
    width: 85%;
    min-width: 0;
    min-height: auto;
    color: white;
    padding: 2rem 0;
    order: 2;
  }

  .contact-form {
    flex: 0 0 auto;
    width: 85%;
    order: 3;
  }

  .contact-detail {
    flex-direction: column;
    gap: 0;
  }

  #elkuldomEmailbenEmail,
  #elkuldomEmailbenName,
  #email,
  #name {
    width: 100%;
  }

  textarea {
    height: 60%;
  }
}

@media only screen and (max-width: 500px) {
  .header {
    width: 70%;
  }

  #elkuldomEmailbenMessage,
  #comment {
    height: 250px;
  }

  .contact {
    width: 95%;
    padding: 1rem;
  }

  .contact-map {
    height: 260px;
  }

  .contact-form {
    width: 95%;
  }

  .contact-us {
    width: 95%;
    min-height: auto;
    color: white;
    padding: 2rem 0;
  }
}
/* Copy address button fix */
.contact-us > span.contact-address-line {
  align-items: flex-start;
  position: relative;
  min-height: 42px;
  padding-right: 48px;
}

.contact-address-text {
  display: block;
  min-width: 0;
}

button.copy-address-button {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.85);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #d4af37;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}

button.copy-address-button svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

button.copy-address-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.copy-address-button:hover,
button.copy-address-button:focus-visible,
button.copy-address-button.is-copied {
  background: #d4af37;
  border-color: #d4af37;
  color: #ffffff;
  outline: none;
}

.copy-address-feedback {
  right: 0;
  bottom: auto;
  top: 40px;
  z-index: 2;
}

.contact-message {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.45;
}

.contact-message-success {
  border: 1px solid rgba(111, 125, 79, 0.35);
  background: rgba(111, 125, 79, 0.12);
  color: #4f5c38;
}

.contact-message-error {
  border: 1px solid rgba(184, 107, 75, 0.4);
  background: rgba(184, 107, 75, 0.12);
  color: #8a3f25;
}
