/* ===================================
   Contact Page Styles
   =================================== */

/* Map Hero */
.contact-map-hero {
  height: 400px;
  margin-top: 72px;
  background-color: #e0e0e0;
  overflow: hidden;
}

.contact-map-hero iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact Section */
.contact-section {
  padding: 3rem 0 4rem;
  background: #ffffff;
}

.contact-page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4a4a4a;
  margin-bottom: 3rem;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

/* Contact Info */
.contact-info-section {
  max-width: 350px;
}

.contact-info-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  font-family: 'DM Sans', sans-serif;
}

.contact-info-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-info-details p {
  font-size: 0.9375rem;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0;
}

/* Contact Form */
.contact-form-section {
  max-width: 100%;
}

/* Contact Form 7 Overrides */
.contact-form-section .wpcf7-form {
  margin: 0;
}

.contact-form-section .wpcf7-form p {
  margin: 0;
  padding: 0;
}

.contact-form-section .wpcf7-form br {
  display: none;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.form-checkbox-group .wpcf7-form-control-wrap {
  display: inline-block;
  width: auto;
}

.wpcf7-list-item {
  margin: 0;
}

.form-group p {
  display: contents;
}

.form-checkbox-group p {
  display: contents;
}

.contact-form-section .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #d13028;
  margin-top: 0.25rem;
}

.contact-form-section .wpcf7-validation-errors,
.contact-form-section .wpcf7-acceptance-missing {
  border: 2px solid #d13028;
  padding: 1rem;
  margin: 1rem 0;
  background-color: #ffe6e6;
  border-radius: 0.375rem;
}

.contact-form-section .wpcf7-mail-sent-ok {
  border: 2px solid #28a745;
  padding: 1rem;
  margin: 1rem 0;
  background-color: #e6ffe6;
  border-radius: 0.375rem;
  color: #155724;
}

.contact-form-section .wpcf7-spinner {
  margin: 0 0 0 1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.form-left-column,
.form-right-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4a4a4a;
  margin-bottom: 0.5rem;
  font-family: 'DM Sans', sans-serif;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-family: 'DM Sans', sans-serif;
  color: #4a4a4a;
  background-color: #f5f5f5;
  border: 1px solid #f5f5f5;
  border-radius: 0.375rem;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #e9483f;
  background-color: #ffffff;
}

.form-textarea {
  height: 140px !important;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.form-bottom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin-top: 15px;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.125rem;
  cursor: pointer;
  accent-color: #e9483f;
}

.form-checkbox-label {
  font-size: 0.8rem;
  color: #767676;
  line-height: 1.5;
  cursor: pointer;
  flex: 1;
}

.form-checkbox-label a {
  color: #e9483f;
  text-decoration: underline;
}

.form-checkbox-label a:hover {
  color: #d13028;
}

.form-submit-btn {
  background-color: #e9483f;
  color: #ffffff;
  padding: 0.875rem 3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.form-submit-btn:hover {
  background-color: #d13028;
  box-shadow: 0 4px 12px rgba(233, 72, 63, 0.3);
}

/* Mobile Improvements */
@media (max-width: 767px) {
  /* Map hero mobile */
  .contact-map-hero {
    height: 300px;
    margin-top: 65px;
  }

  /* Contact section mobile */
  .contact-section {
    padding: 2rem 0 3rem;
  }

  .contact-page-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  /* Contact info mobile */
  .contact-info-section {
    max-width: 100%;
  }

  .contact-info-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .contact-info-details p {
    font-size: 0.875rem;
  }

  /* Form mobile */
  .contact-form {
    gap: 2rem;
  }

  .form-group {
    gap: 0.5rem;
  }

  .form-label {
    font-size: 0.8125rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .form-textarea {
    height: 120px !important;
  }

  /* Form bottom row mobile */
  .form-bottom-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-checkbox-label {
    font-size: 0.8rem;
  }

  /* Touch-friendly submit button */
  .form-submit-btn {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    min-height: 48px;
    width: 100%;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 0.5fr 1.5fr;
    gap: 4rem;
    align-items: start;
  }

  .contact-form {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    gap: 5rem;
  }
}
