/* Contact page */

.contact-page {
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
  background: rgba(243, 232, 215, 0.88);
  border: 1px solid rgba(168, 108, 73, 0.3);
  border-radius: 12px;
  color: #000;
}

/* Page heading with decorative lines */

.contact-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 0 0 28px;
}

.contact-heading::before,
.contact-heading::after {
  content: "";
  flex: 1;
  height: 6px;
  border-top: 2px solid #8d6348;
  border-bottom: 2px solid #8d6348;
}

.contact-page .contact-heading h1 {
  all: unset;
  display: block;
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  color: #171717;
  text-align: center;
}

/* Two-column layout */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 35px;
  align-items: start;
  max-width: 1250px;
  margin: 0 auto;
}

/* Left column */

.contact-intro {
  margin: 18px 0 22px;
  font-size: 17px;
  line-height: 1.75;
  color: #000000;
}

/* Contact information cards */

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(255, 250, 243, 0.65);
  border: 1px solid #b77d58;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(70, 45, 30, 0.08);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #70452f;
  color: #ffffff;
  font-size: 20px;
}

.contact-card__content {
  min-width: 0;
}

.contact-card__content h3 {
  margin: 0 0 5px;
  font-size: 17px;
  color: #201711;
}

.contact-card__content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-card__content a {
  color: #70452f;
  text-decoration: none;
}

.contact-card__content a:hover {
  text-decoration: underline;
}

/* Social links */

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 5px;
  background: #70452f;
  color: #ffffff;
  font-size: 13px;
  text-decoration: none;
}

.contact-socials a:hover {
  background: #8d6348;
}

/* Contact form panel */

.contact-form {
  padding: 24px 28px;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid rgba(183, 125, 88, 0.45);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(70, 45, 30, 0.1);
}

.contact-form h2 {
  margin: 0 0 12px;
font-weight:100;
  font-size: 25px;
  color: #171717;
}

.contact-form h2::after {
  content: "";
  display: block;
  width: 65px;
  height: 3px;
  margin-top: 12px;
  background: #b77d58;
}

.contact-form__intro {
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #000;
  font-weight:300;
}

/* Form fields */

.contact-form label {
  display: block;
  margin: 14px 0 6px;
  font-size: 15px;
  font-weight: normal;;
  color: #70452f;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  box-sizing: border-box;
  border: 1px solid #b77d58;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  color: #33251d;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.contact-form input {
  height: 42px;
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(168, 108, 73, 0.3);
  border-color: #70452f;
}

/* Submit button */

.contact-form button {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border: none;
  border-radius: 5px;
  background: #70452f;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #8d6348;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: start;
  max-width: 1250px;
  margin: 0 auto;
}

.contact-left {
  width: 100%;
  min-width: 0;
}

.contact-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  object-position: center;
  border: 1px solid #b77d58;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(70, 45, 30, 0.15);
  box-sizing: border-box;
}
.contact-status {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #a86c49;
  border-radius: 5px;
  background: rgba(255, 250, 243, 0.9);
  color: #33251d;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-photo {
    max-height: 450px;
  }
}
/* Tablet */

@media (max-width: 900px) {
  .contact-page {
    padding: 24px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-intro {
    margin-top: 0;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .contact-page {
    padding: 18px 14px;
    border-radius: 8px;
  }

 .contact-page .contact-heading h1 {
    gap: 12px;
    margin-bottom: 22px;
  }

  .contact-heading h1 {
    font-size: 27px;
  }

  .contact-heading::before,
  .contact-heading::after {
    height: 5px;
  }

  .contact-intro {
    font-size: 15px;
    line-height: 1.7;
  }

  .contact-card {
    gap: 12px;
    padding: 13px;
  }

  .contact-card__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .contact-card__content h3 {
    font-size: 16px;
  }

  .contact-card__content p {
    font-size: 14px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .contact-form h2 {
    font-size: 22px;
  }
}