/* =========================================
   CONTACT PAGE — contact.css
   ========================================= */

/* ── PAGE LAYOUT ─────────────────────────── */

.contact-page {
  min-height:            calc(100vh - 72px);
  display:               grid;
  grid-template-columns: 1fr 1fr;
  width:                 100%;
}

/* ── LEFT PANEL ──────────────────────────── */

.contact-left {
  padding:         72px 56px 72px 48px;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  border-right:    1px solid var(--border);
}

.contact-kicker {
  display:        flex;
  align-items:    center;
  gap:            10px;
  font-size:      11px;
  color:          var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom:  20px;
}

.contact-kicker::before {
  content:       "";
  width:         20px;
  height:        1.5px;
  background:    var(--blue);
  border-radius: 2px;
}

.contact-title {
  font-size:      clamp(3rem, 4.8vw, 5.6rem);
  line-height:    0.96;
  letter-spacing: -0.07em;
  font-weight:    300;
  color:          var(--text-primary);
  margin-bottom:  24px;
}

.contact-title span { color: var(--blue); }

.contact-desc {
  font-size:     16px;
  line-height:   1.75;
  color:         var(--text-secondary);
  margin-bottom: 48px;
}

/* ── CONTACT DETAILS ─────────────────────── */

.contact-details {
  display:        flex;
  flex-direction: column;
}

.contact-detail {
  display:       flex;
  align-items:   flex-start;
  gap:           12px;
  padding:       14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail:last-of-type { border-bottom: none; }

.contact-detail a {
  color:      inherit;
  transition: color var(--t-fast) ease;
}

.contact-detail a:hover .contact-detail__value { color: var(--blue); }

.contact-detail__icon {
  width:       20px;
  font-size:   13px;
  opacity:     0.45;
  flex-shrink: 0;
  text-align:  center;
  padding-top: 2px;
}

.contact-detail__label {
  display:        block;
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color:          var(--text-muted);
  margin-bottom:  3px;
}

.contact-detail__value {
  font-size:   14px;
  font-weight: 500;
  color:       var(--text-primary);
  line-height: 1.4;
  transition:  color var(--t-fast) ease;
}

/* ── AVAILABILITY ────────────────────────── */

.contact-availability {
  display:       flex;
  align-items:   center;
  gap:           8px;
  margin-top:    28px;
  padding:       11px 18px;
  background:    rgba(29,158,117,0.06);
  border:        1px solid rgba(29,158,117,0.16);
  border-radius: var(--radius-pill);
  width:         fit-content;
}

.contact-availability__dot {
  width:         7px;
  height:        7px;
  border-radius: 50%;
  background:    #1D9E75;
  flex-shrink:   0;
  animation:     pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0   rgba(29,158,117,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(29,158,117,0);   }
}

.contact-availability__text {
  font-size:   12px;
  font-weight: 500;
  color:       #1D9E75;
}

/* ── RIGHT PANEL ─────────────────────────── */

.contact-right {
  padding:         64px 56px 64px 56px;
  display:         flex;
  flex-direction:  column;
  justify-content: center;
}

/* ── SUCCESS STATE ───────────────────────── */

.contact-success {
  display:        none;
  flex-direction: column;
  width:          100%;
  max-width:      520px;
}

.contact-success.is-visible { display: flex; }

.contact-success__card {
  background:    var(--text-primary);
  border-radius: 16px 16px 0 0;
  padding:       36px 36px 32px;
  position:      relative;
  overflow:      hidden;
}

.contact-success__card::before {
  content:    "";
  position:   absolute;
  top:        -50%;
  left:       -20%;
  width:      70%;
  height:     200%;
  background: radial-gradient(ellipse, rgba(26,70,201,0.40) 0%, transparent 65%);
  pointer-events: none;
}

.contact-success__sent {
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color:          rgba(255,255,255,0.35);
  margin-bottom:  14px;
  display:        flex;
  align-items:    center;
  gap:            8px;
  position:       relative;
  z-index:        1;
}

.contact-success__sent::before {
  content:       "";
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    #1D9E75;
  animation:     pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0   rgba(29,158,117,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(29,158,117,0);   }
}

.contact-success__title {
  font-size:      clamp(1.8rem, 3vw, 2.4rem);
  font-weight:    300;
  letter-spacing: -0.05em;
  line-height:    1.10;
  color:          #ffffff;
  margin-bottom:  10px;
  position:       relative;
  z-index:        1;
}

.contact-success__sub {
  font-size:   14px;
  line-height: 1.65;
  color:       rgba(255,255,255,0.48);
  position:    relative;
  z-index:     1;
}

.contact-success__timeline {
  background:    #ffffff;
  border:        1px solid rgba(0,0,0,0.08);
  border-top:    none;
  border-radius: 0 0 16px 16px;
  padding:       24px 32px 32px;
}

.contact-success__tl-label {
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--text-muted);
  margin-bottom:  16px;
}

.contact-success__step {
  display:  grid;
  grid-template-columns: 26px 1fr;
  gap:      12px;
  padding:  10px 0;
  position: relative;
}

.contact-success__step:not(:last-child)::after {
  content:    "";
  position:   absolute;
  left:       12px;
  top:        30px;
  bottom:     -8px;
  width:      1px;
  background: var(--border);
}

.contact-success__step-dot {
  width:           26px;
  height:          26px;
  border-radius:   50%;
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       11px;
  flex-shrink:     0;
  position:        relative;
  z-index:         1;
}

.contact-success__step-dot--done  { background: rgba(29,158,117,0.10); border: 1.5px solid rgba(29,158,117,0.28); color: #1D9E75; }
.contact-success__step-dot--soon  { background: rgba(26,70,201,0.08);  border: 1.5px solid rgba(26,70,201,0.20);  color: var(--blue); }
.contact-success__step-dot--later { background: rgba(0,0,0,0.04);      border: 1.5px solid var(--border);          color: var(--text-muted); }

.contact-success__step-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.contact-success__step-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.contact-success__step-time  { font-size: 11px; font-weight: 500; color: var(--blue); margin-top: 3px; }

/* ── FORM HEADER ─────────────────────────── */

.contact-form-wrap { width: 100%; max-width: 600px; }

.contact-form-header {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  margin-bottom:   24px;
}

.contact-form-header__label {
  font-size:      clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight:    300;
  letter-spacing: -0.04em;
  color:          var(--text-primary);
  line-height:    1.15;
}

.contact-form-header__status {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   12px;
  font-weight: 500;
  color:       #1D9E75;
  flex-shrink: 0;
}

.contact-form-header__dot {
  width:         6px;
  height:        6px;
  border-radius: 50%;
  background:    #1D9E75;
  animation:     pulseDot 2s ease-in-out infinite;
}

/* ── TYPE CHIPS ──────────────────────────── */

.contact-form { display: flex; flex-direction: column; gap: 0; }

.form-type-row   { margin-top: 8px; margin-bottom: 24px; }
.form-type-label { display: none; }

.form-type-group {
  display:   flex;
  gap:       8px;
  flex-wrap: wrap;
}

/* matches site .chip style exactly */
.form-type-btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding:         9px 18px;
  border:          1.5px solid rgba(0,0,0,0.12);
  border-radius:   var(--radius-pill);
  background:      rgba(255,255,255,0.70);
  font-size:       11px;
  font-weight:     500;
  letter-spacing:  0.06em;
  text-transform:  uppercase;
  color:           var(--text-secondary);
  cursor:          pointer;
  font-family:     var(--font-primary);
  white-space:     nowrap;
  transition:
    background   var(--t-fast) ease,
    border-color var(--t-fast) ease,
    color        var(--t-fast) ease,
    transform    var(--t-fast) ease,
    box-shadow   var(--t-fast) ease;
}

.form-type-btn:hover {
  background:   rgba(255,255,255,0.95);
  border-color: rgba(26,70,201,0.25);
  color:        var(--blue);
  transform:    translateY(-2px);
  box-shadow:   0 4px 12px rgba(0,0,0,0.06);
}

/* active — blue tint, no heavy fill */
.form-type-btn.is-active {
  background:   rgba(26,70,201,0.06);
  border-color: var(--blue);
  color:        var(--blue);
  font-weight:  600;
  transform:    translateY(-1px);
  box-shadow:   0 2px 8px rgba(26,70,201,0.12);
}

/* ── FORM FIELDS ─────────────────────────── */

.form-fields {
  display:        flex;
  flex-direction: column;
  gap:            10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:     10px;
}

.form-field {
  display:        flex;
  flex-direction: column;
  gap:            5px;
  padding:        14px 16px;
  background:     rgba(0,0,0,0.04);
  border:         1.5px solid transparent;
  border-radius:  12px;
  transition:
    background   0.2s ease,
    border-color 0.2s ease,
    box-shadow   0.2s ease;
}

.form-field::after { display: none; }

.form-field:hover { background: rgba(0,0,0,0.06); }

.form-field:focus-within {
  background:   #ffffff;
  border-color: var(--blue);
  box-shadow:   0 0 0 3px rgba(26,70,201,0.10);
}

.form-label {
  font-size:      10px;
  font-weight:    700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color:          var(--text-muted);
  line-height:    1;
  transition:     color var(--t-fast) ease;
}

.form-field:focus-within .form-label { color: var(--blue); }

.form-input,
.form-textarea {
  padding:     0;
  border:      none;
  background:  transparent;
  font-size:   15px;
  font-family: var(--font-primary);
  color:       var(--text-primary);
  outline:     none;
  width:       100%;
  line-height: 1.5;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(0,0,0,0.25); }

.form-input.has-error,
.form-textarea.has-error { color: #c53030; }

.form-field.has-error-field {
  border-color: #e53e3e;
  box-shadow:   0 0 0 3px rgba(229,62,62,0.08);
}

.form-textarea {
  resize:     none;
  min-height: 90px;
  line-height: 1.65;
}

.form-error { font-size: 11px; color: #e53e3e; margin-top: 2px; display: none; }
.form-error.is-visible { display: block; }

.form-footer-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.form-char-count           { font-size: 11px; color: var(--text-muted); }
.form-char-count.is-warning { color: #e8a317; }

/* ── FORM FOOTER ─────────────────────────── */

.form-footer-block {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  margin-top:     16px;
}

.form-submit {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         16px 32px;
  background:      var(--blue);
  color:           #ffffff;
  border:          none;
  border-radius:   var(--radius-pill);
  font-size:       15px;
  font-weight:     600;
  cursor:          pointer;
  font-family:     var(--font-primary);
  width:           100%;
  transition:
    background var(--t-fast) ease,
    transform  var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}

.form-submit:hover:not(:disabled) {
  background: #1339a8;
  transform:  translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,70,201,0.28);
}

.form-submit:disabled { opacity: 0.45; cursor: not-allowed; }

.form-submit__spinner {
  width:            14px;
  height:           14px;
  border:           2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius:    50%;
  animation:        spin 0.7s linear infinite;
  display:          none;
  flex-shrink:      0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-submit.is-loading .form-submit__spinner { display: block; }
.form-submit.is-loading .form-submit__label   { opacity: 0.7; }

.form-footer-note {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             5px;
  font-size:       11px;
  color:           var(--text-muted);
}

.form-footer-note::before { content: "🔒"; font-size: 10px; }

/* ── ERRORS ──────────────────────────────── */

.form-global-error {
  padding:       10px 14px;
  background:    rgba(229,62,62,0.06);
  border:        1px solid rgba(229,62,62,0.18);
  border-radius: var(--radius-sm);
  font-size:     13px;
  color:         #c53030;
  display:       none;
}

.form-global-error.is-visible { display: block; }

.form-hp { position: absolute; opacity: 0; height: 0; pointer-events: none; }

/* ── RATE COUNTDOWN ──────────────────────── */

.rate-countdown {
  padding:        12px 16px;
  background:     rgba(26,70,201,0.04);
  border:         1.5px solid rgba(26,70,201,0.14);
  border-radius:  var(--radius-sm);
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.rate-countdown__top   { display: flex; align-items: center; justify-content: space-between; }
.rate-countdown__msg   { font-size: 12px; color: var(--text-secondary); }
.rate-countdown__timer { font-size: 16px; font-weight: 700; letter-spacing: -0.04em; color: var(--blue); font-variant-numeric: tabular-nums; }
.rate-countdown__bar-wrap { height: 3px; background: rgba(26,70,201,0.10); border-radius: 3px; overflow: hidden; }
.rate-countdown__bar      { height: 100%; width: 100%; background: var(--blue); border-radius: 3px; transition: width 1s linear; }
.rate-countdown__hint     { font-size: 11px; color: var(--text-muted); }

/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 1024px) {

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

  .contact-left {
    padding:       56px 40px 40px;
    border-right:  none;
    border-bottom: 1px solid var(--border);
  }

  .contact-right         { padding: 48px 40px 64px; }
  .contact-form-wrap     { max-width: 100%; }

}

@media (max-width: 768px) {

  .contact-left          { padding: 40px 20px 36px; }
  .contact-right         { padding: 36px 20px 56px; }

  /* keep 2-col name+email on mobile too */
  .form-row              { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* only collapse to 1-col on very small screens */
  .contact-form-header__label { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  .contact-success       { max-width: 100%; }

}

@media (max-width: 420px) {
  .form-row              { grid-template-columns: 1fr; gap: 10px; }
}