/* ===================================================================
   Around The World Flights — Contact Page
   Palette: Deep Voyage Navy #12213B, Runway Crimson #C81E3A,
            Cloud White #FAFAF9, Slate #5B6472, Horizon Blue #3E64C7
   Type: 'Fraunces' (display, editorial serif) + 'Inter' (body/UI)
   Signature: dashed "flight path" that arcs from the info column to
   the form, terminating in a paper-plane that animates on send.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #12213B;
  --navy-soft: #1B3057;
  --crimson: #C81E3A;
  --crimson-dark: #A5162E;
  --horizon: #3E64C7;
  --cloud: #FAFAF9;
  --slate: #5B6472;
  --line: #E4E5EA;
  --radius: 4px;
}

* { box-sizing: border-box; }

.atwf-contact {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--navy);
  background: var(--cloud);
}

.atwf-contact a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------
   HERO
--------------------------------------------------------------- */
.atwf-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(18,33,59,0.94) 0%, rgba(18,33,59,0.80) 45%, rgba(18,33,59,0.55) 100%),
    var(--navy);
  background-size: cover;
  background-position: center;
}

/* If a real photo is supplied, drop it in via inline style or this rule */
.atwf-hero.has-photo {
  background-image:
    linear-gradient(115deg, rgba(18,33,59,0.94) 0%, rgba(18,33,59,0.78) 45%, rgba(18,33,59,0.45) 100%),
    var(--hero-photo, none);
}

/* Decorative envelope motif, built in pure CSS/SVG so the section
   still looks finished before a real photo is dropped in */
.atwf-hero__motif {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='140' viewBox='0 0 220 140'%3E%3Crect x='10' y='20' width='90' height='60' rx='4' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M10 20 L55 55 L100 20' fill='none' stroke='white' stroke-width='2'/%3E%3Crect x='120' y='60' width='90' height='60' rx='4' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M120 60 L165 95 L210 60' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 140px;
  pointer-events: none;
}

.atwf-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px;
}

.atwf-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}

.atwf-hero__eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--crimson);
}

.atwf-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin: 0;
  color: #fff;
}

.atwf-hero h1 em {
  font-style: italic;
  color: var(--crimson);
  font-weight: 600;
}

.atwf-hero p {
  margin: 18px 0 0;
  max-width: 480px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------
   BODY / TWO COLUMN LAYOUT
--------------------------------------------------------------- */
.atwf-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px 110px;
  position: relative;
}

.atwf-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  column-gap: 5%;
  row-gap: 64px;
  position: relative;
}

/* Signature flight-path: a dashed arc that runs from the info
   column toward the form, ending in a small plane glyph */
.atwf-flightpath {
  position: absolute;
  top: -40px;
  left: 30%;
  width: 44%;
  aspect-ratio: 500 / 90;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.atwf-flightpath path {
  fill: none;
  stroke: var(--horizon);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  opacity: 0.55;
}

.atwf-flightpath .plane {
  transform-origin: center;
}

/* ---- Info column ---- */
.atwf-info__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}

.atwf-info h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 36px;
  color: var(--navy);
}

.atwf-info__block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.atwf-info__block:last-of-type { border-bottom: 1px solid var(--line); }

.atwf-info__block h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 8px;
}

.atwf-info__block a,
.atwf-info__block span {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.7;
}

.atwf-info__block a:hover { color: var(--horizon); }

.atwf-info__note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--slate);
  line-height: 1.7;
}

/* ---- Form column ---- */
.atwf-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px -32px rgba(18,33,59,0.28);
}

.atwf-form-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--navy);
}

.atwf-form-card > p {
  margin: 0 0 32px;
  color: var(--slate);
  font-size: 15px;
}

.atwf-field {
  position: relative;
  margin-bottom: 26px;
}

.atwf-field input,
.atwf-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--navy);
  padding: 10px 2px 10px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}

.atwf-field textarea { min-height: 88px; padding-top: 20px; }

.atwf-field label {
  position: absolute;
  left: 2px;
  top: 12px;
  font-size: 15px;
  color: #9AA1AC;
  pointer-events: none;
  transition: all 0.18s ease;
}

.atwf-field textarea ~ label { top: 22px; }

.atwf-field input:focus,
.atwf-field textarea:focus {
  border-bottom-color: var(--horizon);
}

.atwf-field input:focus ~ label,
.atwf-field input:not(:placeholder-shown) ~ label,
.atwf-field textarea:focus ~ label,
.atwf-field textarea:not(:placeholder-shown) ~ label {
  top: -14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--horizon);
}

.atwf-field .atwf-underline {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--horizon);
  transition: width 0.25s ease;
}

.atwf-field input:focus ~ .atwf-underline,
.atwf-field textarea:focus ~ .atwf-underline { width: 100%; }

.atwf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.atwf-submit {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 15px 30px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.atwf-submit:hover { background: var(--crimson-dark); transform: translateY(-1px); }
.atwf-submit:active { transform: translateY(0); }

.atwf-submit svg {
  transition: transform 0.3s ease;
}

.atwf-submit:hover svg {
  transform: translate(3px, -3px) rotate(8deg);
}

.atwf-status {
  margin-top: 16px;
  font-size: 14px;
  display: none;
}

.atwf-status.is-success { display: block; color: #1D7A4C; }
.atwf-status.is-error { display: block; color: var(--crimson-dark); }

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 860px) {
  .atwf-grid { grid-template-columns: 1fr; gap: 56px; }
  .atwf-flightpath { display: none; }
  .atwf-form-card { padding: 32px 26px; }
  .atwf-row { grid-template-columns: 1fr; gap: 0; }
  .atwf-hero__inner { padding: 48px 22px; }
  .atwf-body { padding: 64px 22px 80px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .atwf-submit, .atwf-submit svg, .atwf-field label, .atwf-field .atwf-underline {
    transition: none;
  }
}

/* Visible keyboard focus */
.atwf-contact input:focus,
.atwf-contact textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-bottom-color: var(--line) !important;
}