/* ============================================================
   CONTACT PAGE STYLES
   ============================================================ */

/* ── Page Hero ── */
.page-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(6,10,24,0.95) 0%, rgba(10,16,38,0.90) 50%, rgba(15,25,60,0.88) 100%),
    url('/images/hero-bg.jpg') center center / cover no-repeat;
  background-color: #06080f;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 52px;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,110,232,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  margin-bottom: 22px;
  animation: hero-enter 0.6s cubic-bezier(0.4,0,0.2,1) 0.05s both;
}
.page-breadcrumb a { color: rgba(255,255,255,0.42); transition: color 0.2s; }
.page-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-breadcrumb .sep { opacity: 0.3; }
.page-breadcrumb .crumb-current { color: #7AABFF; font-weight: 500; }

/* Tag pill */
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7AABFF;
  background: rgba(44,110,232,0.18);
  border: 1px solid rgba(44,110,232,0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  animation: hero-enter 0.6s cubic-bezier(0.4,0,0.2,1) 0.12s both;
}

/* Title */
.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
  animation: hero-enter 0.5s cubic-bezier(0.4,0,0.2,1) 0.15s both;
  min-height: 1.3em; /* prevent layout jump while JS runs */
}
.page-hero-title .accent { color: #7AABFF; }

/* Typewriter cursor */
.typo-cursor {
  display: inline-block;
  color: #7AABFF;
  font-weight: 200;
  margin-left: 2px;
  animation: blink-cur 0.75s step-end infinite;
}
@keyframes blink-cur {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.typo-cursor.done {
  animation: none;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
}

/* Subtitle */
.page-hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 32px;
  animation: hero-enter 0.75s cubic-bezier(0.4,0,0.2,1) 0.30s both;
}

/* Quick info chips below subtitle */

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  padding: 7px 14px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.hero-chip i { color: #7AABFF; font-size: 0.9rem; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(44,110,232,0.048) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}
.contact-section > .container { position: relative; z-index: 1; }

/* Decorative blobs */
.contact-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.contact-deco .cd-blob1 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,110,232,0.07) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: slow-drift 18s ease-in-out infinite alternate;
}
.contact-deco .cd-blob2 {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.05) 0%, transparent 70%);
  bottom: -80px; left: 5%;
  animation: slow-drift 22s ease-in-out infinite alternate-reverse;
}

/* Grid: info left, form right */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

/* ── Info side ── */
.contact-info-heading {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 10px 0 10px;
}
.contact-info-sub {
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 380px;
}

/* Info cards */
.contact-cards { display: flex; flex-direction: column; gap: 14px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-decoration: none;
}
.contact-card:hover {
  box-shadow: 0 6px 24px rgba(44,110,232,0.1);
  transform: translateY(-2px);
  border-color: rgba(44,110,232,0.25);
}
.cc-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.contact-card:hover .cc-icon { background: var(--blue); color: var(--white); }

.cc-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.cc-value {
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
}

/* Social */
.contact-social-wrap { margin-top: 28px; }
.contact-social-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-social-row { display: flex; gap: 10px; }

/* ── Form side ── */
.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Form itself grows to fill remaining card height */
#contactForm {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Message group expands so textarea fills leftover space */
.form-group-grow {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-group-grow .form-control {
  flex: 1;
  min-height: 120px;
}
.contact-form-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, #7AABFF 100%);
}

.form-box-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.form-box-desc {
  font-size: 0.86rem;
  color: var(--text-sec);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Form fields */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}
.form-label .req { color: var(--blue); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(44,110,232,0.11);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.error { border-color: #EF4444; }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }

textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

/* Submit button */
.form-submit {
  width: 100%;
  padding: 13px 24px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-blue);
  margin-top: 6px;
}
.form-submit:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(44,110,232,0.32); }
.form-submit:active { transform: translateY(0); }
.form-submit .spin { display: none; }
.form-submit.loading .spin { display: inline-block; animation: spin 0.7s linear infinite; }
.form-submit.loading .send-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.form-success-wrap {
  display: none;
  text-align: center;
  padding: 40px 20px 20px;
}
.form-success-wrap.show { display: block; }
.success-icon-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #A7F3D0;
  display: flex; align-items: center; justify-content: center;
  color: #059669;
  font-size: 1.8rem;
  margin: 0 auto 18px;
  animation: scale-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes scale-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.success-msg { font-size: 0.875rem; color: var(--text-sec); line-height: 1.7; }

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  padding: 0 0 96px;
}
.map-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}
.map-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0,0,0,0.09);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* Location badge overlaid on map */
.map-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  pointer-events: none;
  animation: hero-enter 0.7s cubic-bezier(0.4,0,0.2,1) 0.6s both;
}
.mb-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 1rem;
  flex-shrink: 0;
}
.mb-label { font-size: 0.69rem; color: var(--text-muted); margin-bottom: 2px; letter-spacing: 0.04em; }
.mb-value { font-family: var(--font-head); font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .contact-info-sub { max-width: 100%; }
  .contact-form-box { padding: 32px 26px; }
  .contact-section { padding: 72px 0 64px; }
}

@media (max-width: 600px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 36px;
  }
  .page-hero-title { font-size: 1.85rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form-box { padding: 24px 18px; }
  .map-wrap iframe { height: 300px; }
  .map-badge { display: none; }
  .map-section { padding-bottom: 72px; }
  .hero-chip { font-size: 0.76rem; padding: 6px 12px; }
}
