/* ============================================================
   contact.css — Page-specific styles for contact.php
   Shared components in base.css + theme.css + components.css
   ============================================================ */

/* ── CONTAINER WIDTH OVERRIDE ─────────────────────────────── */
.contact-hero .container,
.contact-main .container { max-width: var(--container-max, 1440px) !important; padding: 0 24px; }

/* ── CONTACT HERO ─────────────────────────────────────────── */
.contact-hero {
  position: relative;
  padding: 160px 0 160px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(47,134,255,.18), transparent),
    radial-gradient(circle at 80% 70%, rgba(123,97,255,.10), transparent 50%),
    #0F172A;
  z-index: 1;
}
.contact-hero::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 60px; background: linear-gradient(to bottom, transparent, var(--bg-page, #0B1120));
  pointer-events: none;
}
body.light-mode .contact-hero {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(47,134,255,.08), transparent), #f8fafc !important;
}
body.light-mode .contact-hero::after {
  background: linear-gradient(to bottom, transparent, #f1f5f9) !important;
}

.hero-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.35; letter-spacing: -0.01em;
  text-align: center; color: #fff;
}
.hero-heading .heading-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-intro { text-align: center; color: #94a3b8; font-size: 1.05rem; line-height: 1.75; max-width: 640px; margin: 0 auto 2rem; }

body.light-mode .hero-heading { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
body.light-mode .hero-heading .heading-gradient { background: linear-gradient(135deg, #1d4ed8, #0284c7) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
body:not(.light-mode) .hero-heading { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body:not(.light-mode) .hero-heading .heading-gradient { background: var(--primary-gradient) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; background-clip: text !important; }
body.light-mode .hero-intro { color: #475569 !important; }
body:not(.light-mode) .hero-intro { color: #cbd5e1 !important; }

.btn-touch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 10px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.35);
  color: #93c5fd; font-weight: 600; font-size: .9rem; text-decoration: none; transition: all .25s ease;
}
.btn-touch:hover { background: rgba(59,130,246,.2); color: #fff; border-color: rgba(59,130,246,.55); }
body.light-mode .btn-touch { color: #1d4ed8 !important; background: rgba(59,130,246,.15) !important; border-color: rgba(59,130,246,.4) !important; }
body.light-mode .btn-touch:hover { background: #2563eb !important; color: #fff !important; border-color: #2563eb !important; }

/* ── CONTACT MAIN ─────────────────────────────────────────── */
.contact-main { padding: clamp(48px,8vw,80px) 0 clamp(64px,10vw,100px); position: relative; z-index: 1; }
body.light-mode .contact-main { background: #f1f5f9 !important; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2rem; align-items: start; }

/* Info cards */
.info-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.info-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px 4px 28px 4px; padding: 1.75rem 1.5rem; text-align: center;
  position: relative; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.info-card::before, .info-card::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(59,130,246,.5); pointer-events: none; }
.info-card::before { top: 10px; right: 10px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.info-card::after  { bottom: 10px; left: 10px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.info-card:hover   { transform: translateY(-4px); border-color: rgba(59,130,246,.35); box-shadow: 0 16px 40px rgba(0,0,0,.25); }

.info-card-icon { width: 52px; height: 52px; margin: 0 auto 1rem; border-radius: 12px; background: rgba(59,130,246,.12); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #67e8f9; }
.info-card h3   { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: #fff; }
.info-card p, .info-card a { color: #94a3b8; font-size: .95rem; line-height: 1.6; text-decoration: none; transition: color .2s; }
.info-card a:hover { color: #93c5fd; }

body.light-mode .info-card { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
body.light-mode .info-card:hover { box-shadow: 0 12px 40px rgba(47,134,255,.12) !important; border-color: rgba(47,134,255,.3) !important; }
body.light-mode .info-card h3   { color: #0f172a !important; }
body.light-mode .info-card p, body.light-mode .info-card a { color: #475569 !important; }
body:not(.light-mode) .info-card h3 { color: #fff !important; }
body:not(.light-mode) .info-card p  { color: #cbd5e1 !important; }

/* Form card */
.form-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px 4px 28px 4px; padding: clamp(1.5rem,4vw,2.25rem); position: relative;
}
.form-card::before, .form-card::after { content: ''; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(59,130,246,.45); pointer-events: none; }
.form-card::before { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.form-card::after  { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.form-card h2      { font-size: 1.35rem; font-weight: 800; margin-bottom: .35rem; color: #fff; }
.form-card .form-sub { color: #94a3b8; font-size: .9rem; margin-bottom: 1.5rem; }

body.light-mode .form-card       { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }
body.light-mode .form-card h2    { color: #0f172a !important; }
body.light-mode .form-card .form-sub { color: #475569 !important; }
body:not(.light-mode) .form-card h2  { color: #fff !important; }
body:not(.light-mode) .form-card .form-sub { color: #cbd5e1 !important; }

/* Form controls */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .4rem; color: #e2e8f0; }
.form-group label .req { color: #f87171; }
body.light-mode .form-group label { color: #475569 !important; }
body:not(.light-mode) .form-group label { color: #cbd5e1 !important; }

.form-control-custom, .form-select-custom {
  width: 100%; padding: .75rem 1rem;
  background: rgba(15,23,42,.65); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; color: #f8fafc; font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.form-control-custom::placeholder { color: #64748b; }
.form-control-custom:focus, .form-select-custom:focus { outline: none; border-color: rgba(59,130,246,.55); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }

.form-select-custom { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2rem; }
.form-select-custom option { background: #0f172a; color: #fff; }
textarea.form-control-custom { min-height: 120px; resize: vertical; }

body.light-mode .form-control-custom, body.light-mode .form-select-custom { background: #f8fafc !important; border-color: rgba(0,0,0,.1) !important; color: #0f172a !important; }
body.light-mode .form-control-custom::placeholder { color: #94a3b8 !important; }
body.light-mode .form-control-custom:focus, body.light-mode .form-select-custom:focus { background: #fff !important; border-color: rgba(59,130,246,.5) !important; }

.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: .65rem; }
@media (max-width: 767px) { .phone-row { grid-template-columns: 110px 1fr; } }

.terms-row { display: flex; align-items: flex-start; gap: .65rem; margin: 1.25rem 0 1.5rem; }
.terms-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-blue); flex-shrink: 0; }
.terms-row label { font-size: .85rem; font-weight: 400; color: #94a3b8; line-height: 1.55; margin: 0; }
body.light-mode .terms-row label { color: #475569 !important; }
body:not(.light-mode) .terms-row label { color: #cbd5e1 !important; }
.terms-row a { color: #60a5fa; text-decoration: underline; }
.terms-row a:hover { color: #93c5fd; }

.btn-submit {
  width: 100%; padding: .9rem 1.5rem; border: none; border-radius: 10px;
  background: var(--primary-gradient); color: #fff; font-weight: 700; font-size: 1rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: opacity .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 10px 28px rgba(47,134,255,.3);
}
.btn-submit:hover:not(:disabled) { opacity: .92; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(47,134,255,.38); }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; }

.form-alert { border-radius: 10px; padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1rem; display: none; }
.form-alert.is-visible { display: block; }
.form-alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25); color: #6ee7b7; }
.form-alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.22);  color: #fca5a5; }

.recaptcha-wrap { margin-bottom: 1.25rem; }
.g-recaptcha { transform-origin: 0 0; }
@media (max-width: 400px) {
  .g-recaptcha { transform: scale(0.9); }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .contact-layout { grid-template-columns: 1fr; }
  .info-cards { display: grid; grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 767px) {
  .info-cards { grid-template-columns: 1fr; }
  .contact-hero { padding-top: 160px; padding-bottom: 100px; }
}
