/* =========================================================
   ÚtiTárs – stíluslap
   Színek: kék + narancs
   ========================================================= */

:root {
  --blue-900: #072B5E;
  --blue-700: #0B4DA2;
  --blue-500: #1E6FD9;
  --blue-100: #E6F0FC;
  --blue-50:  #F4F8FE;

  --orange-600: #E8620A;
  --orange-500: #FF7A1A;
  --orange-300: #FFB070;
  --orange-100: #FFF0E3;

  --text: #12233F;
  --muted: #55657F;
  --white: #FFFFFF;
  --border: #CFDDF1;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 43, 94, .12);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

/* ---------- Alapok ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
}

a { color: var(--blue-700); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 122, 26, .35);
}
.btn-primary:hover { background: var(--orange-600); }

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-block { width: 100%; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(7, 43, 94, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-900);
  text-decoration: none;
}
.logo strong { color: var(--orange-500); font-weight: 800; }
.logo-icon { width: 36px; height: 36px; }
.logo-light { color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 8px; }

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-900);
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--orange-500); }

.nav-cta {
  background: var(--blue-700);
  color: var(--white);
}
.nav-cta:hover { background: var(--orange-500); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 190px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 176, 112, .35), transparent 45%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-500) 100%);
}

.hero-sun {
  position: absolute;
  top: 70px;
  right: 9%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange-300) 0%, var(--orange-500) 60%, var(--orange-600) 100%);
  box-shadow: 0 0 80px 20px rgba(255, 122, 26, .45);
}

.hero-content { position: relative; z-index: 2; }
.hero-content h1 { max-width: 760px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero h1 { font-size: clamp(34px, 6vw, 60px); font-weight: 800; }
.hero h1 span { color: var(--orange-300); }

.hero-lead {
  max-width: 600px;
  margin: 0 0 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, .9);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-waves {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 160px;
  z-index: 1;
}

/* ---------- Szekciók ---------- */
.section { padding: 80px 0; }

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--blue-900);
}

.section-sub { margin: 0 0 40px; color: var(--muted); font-size: 17px; }

.steps { text-align: center; padding-top: 30px; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  transition: transform .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-card h3 { font-size: 20px; color: var(--blue-900); }
.step-card p { margin: 0; color: var(--muted); }

.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
}

.popular { margin-top: 50px; }
.popular-label { font-weight: 600; color: var(--blue-900); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.chip {
  padding: 9px 18px;
  border: 2px solid var(--blue-500);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-700);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--orange-500); border-color: var(--orange-500); color: var(--white); }

/* ---------- Útitervező ---------- */
.planner {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--blue-100) 100%);
}

.planner-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: start;
}

.planner-intro { position: sticky; top: 100px; }
.planner-intro p { color: var(--muted); font-size: 17px; }

.perks { list-style: none; margin: 24px 0 0; padding: 0; }
.perks li {
  position: relative;
  padding: 8px 0 8px 34px;
  font-weight: 600;
  color: var(--blue-900);
}
.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='white'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.travel-form {
  padding: 34px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange-500);
}

.form-row { display: flex; gap: 16px; }
.form-row .field { flex: 1; }

.field {
  display: flex;
  flex-direction: column;
  margin: 0 0 18px;
  min-width: 0;
}

fieldset.field { border: 0; padding: 0; }

.field label,
.field legend {
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900);
}

.req { color: var(--orange-600); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--blue-50);
  font: inherit;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 111, 217, .15);
}

.field textarea { resize: vertical; }

.field.invalid input { border-color: var(--orange-600); background: var(--orange-100); }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }

.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--blue-50);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-700);
  transition: all .2s;
}
.check:hover span { border-color: var(--blue-500); }
.check input:checked + span {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
}
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(30, 111, 217, .25); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 22px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--orange-500); flex-shrink: 0; }
.consent.invalid { color: var(--orange-600); }

/* Spam-csapda elrejtése */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Töltés ikon */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, .4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
.is-loading { opacity: .85; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.form-status.success { display: block; background: var(--blue-100); color: var(--blue-900); border-left: 4px solid var(--blue-700); }
.form-status.error   { display: block; background: var(--orange-100); color: #8A3A05; border-left: 4px solid var(--orange-600); }

/* ---------- Lábléc ---------- */
.site-footer {
  padding: 40px 0;
  background: var(--blue-900);
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}
.footer-inner { text-align: center; }
.footer-inner p { max-width: 640px; margin: 12px auto 0; }
.copy { color: var(--orange-300); }

/* ---------- Reszponzív ---------- */
@media (max-width: 900px) {
  .planner-inner { grid-template-columns: 1fr; gap: 30px; }
  .planner-intro { position: static; }
  .step-grid { grid-template-columns: 1fr; }
  .hero-sun { width: 140px; height: 140px; right: -20px; top: 40px; }
}

@media (max-width: 600px) {
  .form-row { flex-direction: column; gap: 0; }
  .travel-form { padding: 24px 18px; }
  .hero { padding: 80px 0 150px; }
  .hero-sun { width: 110px; height: 110px; right: -30px; top: 20px; opacity: .7; }
  .eyebrow { font-size: 11px; }
  .logo { font-size: 19px; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .hero-actions .btn { flex: 1; }
}
