/* Page Container & Layout */
.contact-page {
  background-color: var(--bg-light);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 6.25rem);
  min-height: 100vh;
}

/* Page Intro Header */
.contact-page-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-page-header h1 {
  font-family: 'Sabrosa', var(--font-main);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: normal;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.contact-page-header .subtitle {
  font-family: var(--font-main);
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  color: var(--text-gray);
  max-width: 38.75rem;
  margin: 0 auto;
  line-height: 1.55;
}

/* 2-Column Responsive Grid */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
  max-width: 72rem;
  margin: 0 auto;
}

/* Form Card */
.contact-form-card {
  background: #ffffff;
  border: 0.0625rem solid #f0f0f0;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.04);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contact-form-card h2 {
  font-family: 'Sabrosa', var(--font-main);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: normal;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.contact-form-card .form-group {
  margin-bottom: 1.25rem;
}

.contact-form-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.contact-form-card .form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 2.875rem;
  background-color: #fcfcfc;
  border: 0.0625rem solid #eaeaea;
  border-radius: 0.25rem;
  font-family: var(--font-main);
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form-card .form-control::placeholder {
  color: #a0a0a0;
  font-size: 0.9375rem;
}

.contact-form-card .form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(218, 41, 28, 0.08);
}

.contact-form-card .form-group-message {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-card textarea.form-control {
  flex: 1;
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.55;
}

/* Custom Dropdown Select */
.contact-form-card .select-wrapper {
  position: relative;
}

.contact-form-card .select-wrapper select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
  background-color: #fcfcfc;
}

.contact-form-card .select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 0.35rem solid transparent;
  border-right: 0.35rem solid transparent;
  border-top: 0.35rem solid var(--text-gray);
  pointer-events: none;
}

/* Submit Button */
.btn-submit-contact {
  padding: 0.875rem 2.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* Info Column & Cards */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.25rem);
}

.info-card {
  background: #ffffff;
  border: 0.0625rem solid #f0f0f0;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.04);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.info-card-accent {
  border-left: 0.25rem solid var(--primary-red);
}

.info-card h3 {
  font-family: 'Sabrosa', var(--font-main);
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  font-weight: normal;
  color: var(--text-dark);
  margin-bottom: 0.625rem;
}

.info-card p {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0.875rem;
}

.info-email {
  font-size: 0.84375rem;
  color: var(--text-dark);
}

.info-email strong {
  font-weight: 700;
  margin-right: 0.375rem;
}

.info-email a {
  color: var(--primary-red);
  font-weight: 600;
  transition: color 0.2s ease;
}

.info-email a:hover {
  color: var(--primary-red-hover);
  text-decoration: underline;
}

/* Office Info */
.office-card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.office-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.office-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.84375rem;
  color: var(--text-gray);
  line-height: 1.55;
}

.office-list strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.125rem;
}

.office-list span {
  display: block;
}

.office-list a {
  color: inherit;
  transition: color 0.2s ease;
}

.office-list a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.office-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--primary-red);
}

/* Responsiveness (em-based) */
@media (max-width: 62em) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-form-card {
    height: auto;
  }

  .contact-form-card textarea.form-control {
    min-height: 8rem;
  }
}

@media (max-width: 48em) {
  .contact-form-card .form-control,
  .contact-form-card .select-wrapper select.form-control {
    font-size: 1rem;
  }

  .btn-submit-contact {
    width: 100%;
    align-self: stretch;
  }

  .office-list a,
  .info-email a {
    display: inline-block;
    padding: 0.125rem 0;
  }
}

@media (max-width: 30em) {
  .contact-form-card,
  .info-card,
  .office-card {
    padding: 1.25rem 1rem;
  }
}
