/* ================================================================
   CONTACT.CSS — Medhas Law Contact Us Page
   Scope: All styles prefixed ct- (contact) to avoid collisions
================================================================ */

/* ── SCROLL REVEAL ─────────────────────────────────────────────── */
.ct-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease calc(var(--d, 0s)), transform .65s ease calc(var(--d, 0s));
}
.ct-reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ── HERO ───────────────────────────────────────────────────────── */
.ct-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height, 80px) + 80px) 0 100px;
  background: var(--navy-dark, #0B1F3A);
  overflow: hidden;
}
.ct-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.ct-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.40) saturate(1.1);
}
.ct-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,154,82,.40), transparent);
  z-index: 1;
}
.ct-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 31, 58, 0.92) 0%,
    rgba(16, 43, 80, 0.84) 50%,
    rgba(16, 43, 80, 0.60) 100%
  );
  pointer-events: none;
}
.ct-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.ct-hero-content {
  max-width: 680px;
}
.ct-hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--white, #fff);
  line-height: 1.15;
  margin: 14px 0 20px;
  letter-spacing: -.01em;
}
.ct-hero-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
}
.ct-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ct-hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.ct-hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(196,154,82,.6), transparent);
  animation: ctScrollPulse 1.8s ease-in-out infinite;
}
@keyframes ctScrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.7); }
}

/* ── SHARED SECTION TYPOGRAPHY ──────────────────────────────────── */
.ct-section-heading {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  color: var(--navy, #102B50);
  margin: 10px 0 14px;
  line-height: 1.2;
}
.ct-section-sub {
  font-size: 1rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.75;
  margin-bottom: 0;
}
.ct-section-sub--center {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.ct-section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ── MAIN SPLIT: FORM + INFO ────────────────────────────────────── */
.ct-main {
  background: var(--white, #fff);
}
.ct-main-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: start;
}

/* Form column header */
.ct-form-header {
  margin-bottom: 36px;
}

/* ── FORM ───────────────────────────────────────────────────────── */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ct-form-row {
  margin-bottom: 22px;
}
.ct-form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.ct-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ct-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy, #102B50);
  letter-spacing: .01em;
}
.ct-required {
  color: #c0392b;
  margin-left: 2px;
}
.ct-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #d8dde8;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  color: var(--navy, #102B50);
  background: #fafbfd;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.ct-input:focus {
  border-color: var(--gold, #C49A52);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196,154,82,.15);
}
.ct-input.ct-input--error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,.10);
}
.ct-input::placeholder {
  color: #aab0be;
}
.ct-textarea {
  resize: vertical;
  min-height: 130px;
}
.ct-select-wrap {
  position: relative;
}
.ct-select {
  cursor: pointer;
  padding-right: 40px;
}
.ct-select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy, #102B50);
  pointer-events: none;
}
.ct-field-error {
  font-size: .8rem;
  color: #c0392b;
  min-height: 1em;
  display: block;
}

/* Fieldset / radio */
.ct-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.ct-radio-group {
  display: flex;
  gap: 28px;
  margin-top: 8px;
}
.ct-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: var(--text-dark, #1a202c);
  cursor: pointer;
}
.ct-radio {
  accent-color: var(--gold, #C49A52);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

/* Custom checkbox */
.ct-consent-group { }
.ct-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.ct-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ct-checkbox-custom {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #c5cad8;
  border-radius: 4px;
  background: #fafbfd;
  margin-top: 2px;
  transition: border-color .2s, background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-checkbox:checked + .ct-checkbox-custom {
  background: var(--navy, #102B50);
  border-color: var(--navy, #102B50);
}
.ct-checkbox:checked + .ct-checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}
.ct-checkbox:focus + .ct-checkbox-custom {
  outline: 3px solid rgba(196,154,82,.4);
  outline-offset: 2px;
}
.ct-checkbox-text {
  font-size: .875rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.6;
}

/* Submit button */
.ct-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-width: 200px;
}
.ct-btn-icon {
  flex-shrink: 0;
}

/* ── Feedback Banners (Success & Error Notifications) ────────── */
.ct-feedback-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.ct-feedback-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.ct-feedback-content {
  flex: 1;
}
.ct-feedback-title {
  margin: 0 0 4px 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: inherit;
}
.ct-feedback-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Success Banner */
.ct-feedback-success {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
}
.ct-feedback-success .ct-feedback-icon svg {
  color: #16a34a;
}
.ct-feedback-success .ct-feedback-title {
  color: #14532d;
}
.ct-feedback-success .ct-feedback-desc {
  color: #166534;
}

/* Error Banner */
.ct-feedback-error {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
}
.ct-feedback-error .ct-feedback-icon svg {
  color: #dc2626;
}
.ct-feedback-error .ct-feedback-title {
  color: #7f1d1d;
}
.ct-feedback-error .ct-feedback-desc {
  color: #991b1b;
}

/* Legacy Success message support */
.ct-success-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #14532d;
}
.ct-success-msg svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #16a34a;
}
.ct-success-msg p {
  font-size: .94rem;
  margin: 0;
  line-height: 1.6;
}

/* Form notice */
.ct-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .82rem;
  color: var(--text-light, #718096);
  line-height: 1.55;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef0f5;
}
.ct-form-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── INFO COLUMN ────────────────────────────────────────────────── */
.ct-info-col {
  position: sticky;
  top: calc(var(--header-height, 80px) + 24px);
}
.ct-info-block {
  margin-bottom: 32px;
}

/* Quick contacts */
.ct-quick-contacts-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ct-quick-contacts {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--ivory, #F8F6F0);
  border: 1px solid #e8e2d6;
  border-radius: 10px;
  overflow: hidden;
}
.ct-qc-group-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy, #102B50);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(16, 43, 80, 0.035);
  border-bottom: 1px solid #e8e2d6;
}
.ct-quick-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  transition: background .18s;
  border-bottom: 1px solid #e8e2d6;
}
.ct-quick-contact:last-child {
  border-bottom: none;
}
.ct-quick-contact:hover {
  background: #fff;
}
.ct-qc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy, #102B50);
  color: var(--gold, #C49A52);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-qc-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-mid, #4a5568);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.ct-qc-value {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy, #102B50);
}

/* ── OFFICES SECTION ────────────────────────────────────────────── */
.ct-offices-bg {
  background: var(--ivory, #F8F6F0);
}
.ct-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ct-office-card {
  background: #fff;
  border: 1px solid #e8e2d6;
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  display: flex;
  flex-direction: column;
}
.ct-office-card:hover {
  box-shadow: 0 12px 40px rgba(16,43,80,.10);
  transform: translateY(-4px);
  border-color: var(--gold, #C49A52);
}
.ct-office-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ct-office-flag-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ivory, #F8F6F0);
  border: 2px solid #e8e2d6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ct-office-flag-badge .flag-icon {
  width: 30px;
  height: 22px;
  object-fit: cover;
}
.ct-office-badge-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold, #C49A52);
  background: rgba(196,154,82,.10);
  border: 1px solid rgba(196,154,82,.30);
  border-radius: 100px;
  padding: 4px 10px;
}
.ct-office-badge-label--branch {
  color: var(--text-mid, #4a5568);
  background: rgba(74,85,104,.07);
  border-color: rgba(74,85,104,.20);
}
.ct-office-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy, #102B50);
  margin: 0 0 12px;
  line-height: 1.3;
}
.ct-office-address {
  font-size: .88rem;
  color: var(--text-mid, #4a5568);
  line-height: 1.75;
  font-style: normal;
  margin-bottom: 18px;
  flex: 1;
}
.ct-office-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.ct-office-contact-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  color: var(--navy, #102B50);
  text-decoration: none;
  transition: color .18s;
  word-break: break-all;
}
.ct-office-contact-link:hover {
  color: var(--gold, #C49A52);
}
.ct-office-contact-link svg {
  flex-shrink: 0;
  color: var(--gold, #C49A52);
}
.ct-office-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold, #C49A52);
  text-decoration: none;
  letter-spacing: .02em;
  margin-top: auto;
  transition: gap .18s;
}
.ct-office-map-link svg {
  color: var(--gold, #C49A52);
}
.ct-office-map-link:hover {
  gap: 10px;
}

/* ── CLOSING CTA ────────────────────────────────────────────────── */
.ct-closing-cta {
  background: var(--navy, #102B50);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.ct-closing-cta::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,82,.12) 0%, transparent 65%);
  pointer-events: none;
}
.ct-closing-cta::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,70,142,.30) 0%, transparent 65%);
  pointer-events: none;
}
.ct-closing-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.ct-closing-text {
  flex: 1;
  max-width: 580px;
}
.ct-closing-heading {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--white, #fff);
  margin: 12px 0 16px;
  line-height: 1.2;
}
.ct-closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
}
.ct-closing-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.ct-closing-actions .btn {
  min-width: 220px;
  justify-content: center;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ct-main-grid {
    grid-template-columns: 1fr 360px;
    gap: 56px;
  }
  .ct-offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .ct-closing-inner {
    flex-direction: column;
    text-align: center;
  }
  .ct-closing-text {
    max-width: 100%;
  }
  .ct-closing-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .ct-hero {
    padding: calc(var(--header-height, 80px) + 56px) 0 80px;
    min-height: auto;
  }
  .ct-hero-heading { font-size: 2rem; }
  .ct-hero-actions { flex-direction: column; }
  .ct-hero-actions .btn { width: 100%; justify-content: center; }

  .ct-main-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .ct-info-col {
    position: static;
  }
  .ct-form-row--2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ct-form-row--2 .ct-field-group + .ct-field-group {
    margin-top: 22px;
  }
  .ct-offices-grid {
    grid-template-columns: 1fr;
  }
  .ct-closing-cta { padding: 72px 0; }
  .ct-closing-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .ct-radio-group { gap: 18px; }
  .ct-submit-btn { width: 100%; justify-content: center; }
  .ct-closing-actions { flex-direction: column; }
}
