/* ============================================================
   ALL AMERICAN CHC — Contact Page Styles
   Loaded only when template-contact.php is active.
   Shared .form-* element styles live in global.css.
   ============================================================ */


/* === BREADCRUMB === */
.breadcrumb {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--container-padding);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-link {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-grey-9);
  transition: color var(--transition-fast);
}
.breadcrumb-link:hover {
  color: var(--color-primary-blue);
}
.breadcrumb-sep {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-grey-6);
}
.breadcrumb-current {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-blue-n4);
}


/* === CONTACT MAIN CONTAINER === */
.ct-main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.ct-title {
  font-size: 72px;
  line-height: 80px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
  margin-bottom: 16px;
}
.ct-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  margin-bottom: 36px;
  max-width: 50%;
}


/* === FORM SECTION === */
.ct-form-section {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-bottom: var(--section-gap);
}
.ct-form-image {
  flex: 1 1 0;
  min-width: 0;
  height: 564px;
  max-height: 564px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-grey-0);
  box-shadow: var(--shadow-card);
}
.ct-form-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ct-form {
  flex: 1 1 0;
  min-width: 0;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--color-grey-0);
  box-shadow: var(--shadow-card);
}
.ct-form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}
.ct-form-group {
  flex: 1;
  margin-bottom: 16px;
}
.ct-form-row .ct-form-group {
  margin-bottom: 0;
}
.ct-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 24px;
}
.ct-form-check-text {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-grey-9);
}
.ct-form-check-text a {
  text-decoration: underline;
}

/* Submit button */
.ct-form-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 16px 32px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-blue);
  color: var(--color-grey-0);
  font-size: 17px;
  line-height: 1;
  font-weight: var(--fw-semibold);
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: background var(--transition-fast);
}
.ct-form-submit:hover {
  background: var(--color-blue-n3);
}
.ct-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ct-form-submit-loading {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--color-grey-0);
  border-radius: 50%;
  animation: ct-spin 0.8s linear infinite;
}
.ct-form-submit.is-loading .ct-form-submit-loading {
  display: inline-block;
}
@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

/* Feedback + error states */
.ct-form-feedback {
  margin-top: 16px;
  font-size: 16px;
  line-height: 22px;
}
.ct-form-feedback--success {
  color: var(--color-green-1);
}
.ct-form-feedback--error {
  color: #c0392b;
}
.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
  border-color: #c0392b;
}
.field-error {
  margin-top: 6px;
  font-size: 14px;
  line-height: 18px;
  color: #c0392b;
}


/* === LOCATION SECTION === */
.ct-location {
  margin-bottom: var(--section-gap);
}
.ct-location-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
  margin-bottom: 36px;
}
.ct-location-layout {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.ct-location-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ct-info-card {
  background: var(--color-grey-0);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ct-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-blue-n11);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-blue);
}
.ct-info-icon svg {
  width: 20px;
  height: 20px;
}
.ct-info-label {
  font-size: 18px;
  line-height: 24px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}
.ct-info-text {
  font-size: 16px;
  line-height: 22px;
  color: var(--color-grey-7);
  margin-top: 4px;
}
.ct-info-text a {
  color: inherit;
  transition: color var(--transition-fast);
}
.ct-info-text a:hover {
  color: var(--color-primary-blue);
}
.ct-location-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 520px;
  flex-shrink: 0;
}
.ct-loc-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
}
.ct-loc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* === MAP SECTION === */
.ct-map {
  margin-bottom: 80px;
}
.ct-map-header {
  text-align: center;
  margin-bottom: 36px;
}
.ct-map-title {
  font-size: 32px;
  line-height: 40px;
  font-weight: var(--fw-semibold);
  color: var(--color-blue-4);
}
.ct-map-sub {
  font-size: 18px;
  line-height: 24px;
  color: var(--color-grey-9);
  margin-top: 12px;
}
.ct-map-card {
  background: var(--color-grey-0);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-map-image,
.ct-map-embed {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
}
.ct-map-image {
  display: block;
  object-fit: contain;
}
.ct-map-placeholder {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  background: var(--color-blue-n12);
}
.ct-map-embed {
  border: none;
}
.ct-map-link {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1;
  font-weight: var(--fw-medium);
  color: var(--color-blue-n2);
}
.ct-map-link:hover {
  text-decoration: underline;
}
.ct-map-link svg {
  width: 18px;
  height: 18px;
}


/* === RESPONSIVE === */
@media (max-width: 1279px) {
  .breadcrumb { padding: 24px 32px; }
  .ct-main { padding: 0 32px; }
}
@media (max-width: 991px) {
  .breadcrumb { padding: 16px; }
  .ct-main { padding: 0 16px; }
  .ct-title { font-size: 40px; line-height: 46px; }
  .ct-sub {
    max-width: 100%;
    font-size: 16px;
    line-height: 22px;
  }

  .ct-form-section {
    flex-direction: column;
    gap: 32px;
    margin-bottom: var(--section-gap-mobile);
  }
  .ct-form-image {
    width: 100%;
    min-height: 250px;
    height: 340px;
  }
  .ct-form {
    width: 100%;
    padding: 28px 24px;
  }
  .ct-form-row { flex-direction: column; gap: 16px; }
  .ct-form-submit { width: 100%; height: 48px; font-size: 16px; }

  .ct-location { margin-bottom: var(--section-gap-mobile); }
  .ct-location-title { font-size: 24px; line-height: 30px; }
  .ct-location-layout { flex-direction: column; gap: 24px; }
  .ct-location-images { width: 100%; }

  .ct-map { margin-bottom: 60px; }
  .ct-map-title { font-size: 24px; line-height: 30px; }
  .ct-map-sub { font-size: 16px; line-height: 22px; }
  .ct-map-card { padding: 24px; min-height: 360px; }
  .ct-map-image,
  .ct-map-embed,
  .ct-map-placeholder { height: 320px; }
}
@media (max-width: 575px) {
  .breadcrumb { padding: 12px; }
  .ct-main { padding: 0 12px; }
  .ct-form-image { height: 280px; }
  .ct-form { padding: 24px 16px; }
  .ct-location-images { grid-template-columns: 1fr; }
}
