/* Contact Page Specific Styles */
.contact-page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.contact-page-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.contact-page-hero p {
  color: hsl(var(--muted-foreground));
  font-size: 1.0625rem;
}

.contact-page-form {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 2);
  padding: 2.5rem;
  box-shadow: 0 10px 40px hsla(var(--foreground), 0.08);
}

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

.contact-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

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

.contact-form-group input.contact-error,
.contact-form-group select.contact-error,
.contact-form-group textarea.contact-error {
  border-color: hsl(0 84% 60%);
}

.contact-helper-text {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.375rem;
}

.contact-error-msg {
  color: hsl(0 84% 60%);
  font-size: 0.8125rem;
  display: none;
}

.contact-error-msg.show {
  display: block;
}

/* Service Type Radio Buttons */
.contact-service-group-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.contact-radio-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.contact-radio-button {
  position: relative;
}

.contact-radio-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-radio-button label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.contact-radio-button input[type="radio"]:checked + label {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.contact-radio-button label:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.5);
}

.contact-radio-button input[type="radio"]:checked + label:hover {
  background: hsl(var(--primary) / 0.9);
}

/* Form Actions */
.contact-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: flex-end;
}

.contact-btn-reset {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.contact-btn-reset:hover {
  background: hsl(var(--muted) / 0.7);
}

.contact-btn-submit {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.contact-btn-submit:hover {
  background: hsl(var(--primary) / 0.9);
}

/* Fieldset */
.contact-fieldset {
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    to bottom,
    hsl(var(--background)),
    hsl(var(--background) / 0.5)
  );
}

.contact-fieldset .contact-form-group:last-of-type {
  margin-bottom: 0;
}

.contact-fieldset-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--primary));
  padding: 0 0.75rem;
}

.auto-fill-badge {
  display: none;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .contact-page-form {
    padding: 1.5rem;
  }

  .contact-radio-buttons {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    flex-direction: column-reverse;
  }

  .contact-form-actions button {
    width: 100%;
  }
}

/* ============ CONTACT INFO SECTIONS ============ */
.contact-offices,
.contact-process,
.contact-faq {
  margin-top: 4rem;
}

.contact-offices .section-header,
.contact-process .section-header,
.contact-faq .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-offices .section-header h2,
.contact-process .section-header h2,
.contact-faq .section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-offices .section-header p,
.contact-process .section-header p,
.contact-faq .section-header p {
  color: hsl(var(--muted-foreground));
}

.contact-office-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.contact-office-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
}

.contact-office-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.contact-office-card h3 svg {
  color: hsl(var(--primary));
  width: 20px;
  height: 20px;
}

.contact-office-card > p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  line-height: 0;
}

.contact-map iframe {
  width: 100%;
  height: 260px;
  border: 0;
}

.contact-faq-list {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}

.contact-faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.5rem;
}

.contact-faq-item h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.625rem;
}

.contact-faq-item h3 svg {
  color: hsl(var(--primary));
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-faq-item p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .contact-office-grid,
    .contact-map iframe {
    height: 220px;
  }
}

.contact-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.contact-directions svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   CONTACT PAGE — RESTRUCTURED LAYOUT
   ============================================================ */

.contact-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

/* ---------- Hero ---------- */
.contact-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.contact-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-hero > p {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.contact-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem 1rem;
  padding: 0;
}

.contact-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  background: hsl(var(--primary) / 0.09);
  color: hsl(var(--primary));
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.contact-trust svg {
  width: 15px;
  height: 15px;
}

/* ---------- Two-column: form + channels ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

.contact-col-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
}

.contact-col-sub {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.contact-col-sub span,
.req {
  color: hsl(var(--primary));
  font-weight: 700;
}

/* form card */
.contact-page-form {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.5);
  padding: 1.75rem;
}

/* two-up field rows on desktop */
.contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

/* the service-type fieldset sheds its heavy chrome */
.contact-service-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.contact-service-fieldset .contact-fieldset-legend {
  padding: 0;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.contact-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-btn-submit {
  flex: 1;
}

.contact-privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.contact-privacy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Aside: direct channels ---------- */
.contact-aside-inner {
  position: sticky;
  top: 6.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) * 1.25);
  text-decoration: none;
  color: inherit;
  min-height: 48px;
  transition: transform var(--dur-fast, 160ms) ease,
    border-color var(--dur-fast, 160ms) ease,
    box-shadow var(--dur-fast, 160ms) ease;
}

a.contact-channel:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary));
  box-shadow: 0 8px 20px hsla(var(--foreground), 0.09);
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-channel-icon svg {
  width: 19px;
  height: 19px;
}

.contact-channel-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.contact-channel-body strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.contact-channel-body span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  overflow-wrap: anywhere;
}

.contact-channel-primary {
  border-color: hsl(var(--primary) / 0.45);
  background: hsl(var(--primary) / 0.05);
}

.contact-channel-wa .contact-channel-icon {
  background: #25d366;
  color: #fff;
}

.contact-channel-static {
  cursor: default;
}

/* ---------- What happens next ---------- */
.contact-next {
  margin-top: 0.75rem;
  padding: 1.25rem;
  background: hsl(var(--muted));
  border-radius: calc(var(--radius) * 1.25);
}

.contact-next h3 {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.875rem;
}

.contact-next-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  counter-reset: none;
}

.contact-next-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

.contact-next-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* channels move above the form on tablet/mobile — calling beats typing */
  .contact-form-col {
    order: 2;
  }

  .contact-aside {
    order: 1;
  }

  .contact-aside-inner {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
  }

  .contact-next {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .contact-page-container {
    padding: 6rem 1rem 3rem;
  }

  .contact-field-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-form {
    padding: 1.25rem;
  }

  .contact-form-actions {
    flex-direction: column-reverse;
  }

  .contact-form-actions .btn {
    width: 100%;
  }

  .contact-aside-inner {
    grid-template-columns: 1fr;
  }
}
