/* ============================================================
   FONTOVI — WarblerBanner (iz FONT foldera)
   ============================================================ */
@font-face {
  font-family: "Warbler Banner";
  src: url("../FONT/WarblerBanner-Regular-Testing-BF674fd38676e7d.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Warbler Banner";
  src: url("../FONT/WarblerBanner-Italic-Testing-BF674fd3863e655.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Warbler Banner";
  src: url("../FONT/WarblerBanner-Bold-Testing-BF674fd3863b486.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Warbler Banner";
  src: url("../FONT/WarblerBanner-BoldItalic-Testing-BF674fd3860a539.otf") format("opentype");
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ============================================================
   VARIJABLE / RESET
   ============================================================ */
:root {
  --cream: #f2f0e9;
  --cream-2: #efece3;
  --gold: #ce9643;
  --gold-soft: rgba(206, 150, 67, 0.16);
  --ink: #141210;
  --ink-soft: #2c2824;
  --muted: #8a8378;
  --serif: "Warbler Banner", "Cormorant Garamond", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-anchor: none; /* stepper ostaje na mjestu, forma raste prema dolje */
  /* brojevi kao na printu: lining (ravna visina) + tabular (jednaka širina), ne "old style" */
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
img { display: block; max-width: 100%; }

/* ============================================================
   OKVIR / VIEW
   ============================================================ */
.card { position: relative; width: 100%; overflow-x: hidden; }

.view {
  position: relative;
  min-height: 100vh;
  padding: 0 0 70px;
  overflow: hidden;
}
.view--hidden { display: none; }

.invite { position: relative; z-index: 2; }

/* ============================================================
   FLOWERS — pozicije za MOBILE (default)
   ============================================================ */
.flower {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.flower--top-left  { width: 56%; top: 150px; left: -14%; }
.flower--top-right { width: 27%; top: 60px;  right: -8%; }   /* spušten malo niže */
.flower--bottom-left  { width: 33%; left: -8%;  bottom: 0; }
.flower--bottom-right { width: 41%; right: -10%; bottom: -8px; }

/* HVALA ekran: lijevi cvjetovi su ZRCALO desnih (obrnuti + iste pozicije lijevo) */
#hvala .flower--top-left,
#hvala .flower--bottom-left { transform: scaleX(-1); }
#hvala .flower--top-left    { width: 27%; top: 60px;  left: -8%; }
#hvala .flower--bottom-left { width: 41%; left: -10%; bottom: -8px; }

/* cvijet vezan uz formu — "izlazi" iz njenog lijevog ruba */
.rsvp { position: absolute; }
.flower--form-left {
  width: 110px;
  left: 4px;            /* desni rub cvijeta dira lijevi rub polja */
  top: 150px;
  z-index: 3;           /* ISPRED forme, ne iza */
}
.form { padding-left: 0; }   /* poravnato s uvodnim tekstom (cvijet uklonjen) */

/* ============================================================
   NASLOV
   ============================================================ */
.hero {
  position: relative;
  z-index: 3;
  padding: 30px 24px 6px;
  display: flex;
  justify-content: flex-end;     /* naslov gore desno (mobile mockup) */
  min-height: 300px;
}
.title { width: 100%; max-width: 420px; }   /* povećan naslov */

/* ============================================================
   DATUM + RASPORED
   ============================================================ */
.schedule {
  position: relative;
  z-index: 2;
  padding: 26px 26px 8px;
  text-align: right;
}
.date { font-weight: 700; font-size: 20px; letter-spacing: .04em; margin-bottom: 26px; }
.schedule-list { list-style: none; }
.schedule-item { margin-bottom: 20px; }
.s-time  { display: block; font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.s-name  { display: block; font-weight: 700; font-size: 17px; letter-spacing: .08em; }
.s-place { display: block; font-style: italic; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* zlatna crtica s rombom (koristi je sekcija lokacija) */
.date-rule {
  display: block; width: 54px; height: 1px;
  background: var(--gold); margin: 0 auto 22px; position: relative;
}
.date-rule::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ============================================================
   RSVP FORMA (moderniji izgled)
   ============================================================ */
.rsvp { position: relative; z-index: 2; padding: 38px 26px 20px; }
.rsvp-intro {
  font-weight: 700; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.6; margin-bottom: 24px;
}

.form { display: flex; flex-direction: column; }
.field { position: relative; margin-bottom: 16px; }

/* tekst / email polja s plutajućom oznakom */
.field input,
.field select {
  width: 100%;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(20, 18, 16, .14);
  border-radius: 14px;
  padding: 22px 16px 8px;
  outline: none;
  appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.field > label {
  position: absolute;
  left: 16px; top: 16px;
  font-size: 15px; color: var(--muted);
  pointer-events: none;
  transition: all .18s ease;
}
/* plutanje gore kad je fokus ili upisano */
.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 8px; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}

/* SELECT polje — oznaka uvijek gore + chevron */
.field--select select { cursor: pointer; }
.field--select > label {
  top: 8px; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.field--select::after {
  content: "";
  position: absolute; right: 18px; top: 60%;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

/* BROJ GOSTIJU — stepper s upisivim brojem */
.field--count > label {
  position: static;            /* iznad steppera, ne preko gumba */
  display: block; margin: 0 0 8px 4px;
  font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.stepper {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(20, 18, 16, .14);
  border-radius: 14px;
  padding: 7px;
}
.stepper .step {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border: none; border-radius: 10px;
  background: var(--ink); color: var(--cream);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s ease, transform .05s ease;
}
.stepper .step:hover { opacity: .85; }
.stepper .step:active { transform: scale(.94); }
.stepper input {
  flex: 1 1 auto; min-width: 0;
  text-align: center;
  padding: 0;                  /* makni UA padding da centriranje bude točno */
  border: none; background: transparent;
  font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink);
  outline: none;
  appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; display: none; margin: 0; }

/* DOLAZIŠ LI NA VJENČANJE? — DA/NE kružići */
.field--radio { margin-bottom: 22px; }
.radio-label {
  display: block; margin: 0 0 12px 4px;
  font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.radio-row { display: flex; gap: 28px; }
.radio {
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: .1em;
}
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio .dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--ink); position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.radio input:checked + .dot { border-color: var(--gold); }
.radio input:checked + .dot::after {
  content: ""; position: absolute; inset: 4px;
  background: var(--gold); border-radius: 50%;
}
.radio input:focus-visible + .dot { box-shadow: 0 0 0 4px var(--gold-soft); }

/* Dinamičke linije za imena — jedan red (Ime | Prezime) po gostu */
.guest-names { display: flex; flex-direction: column; }
.guest { margin-bottom: 16px; }
.guest-no {
  display: block; margin: 0 0 8px 4px;
  font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold);
}
.name-row { display: flex; gap: 12px; }
.name-row .field { flex: 1 1 0; min-width: 0; margin-bottom: 0; }

/* Honeypot — skriveno od ljudi */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: #9a3412; font-style: italic; font-size: 13px; min-height: 18px; margin: 2px 0 8px; }

.submit {
  width: 100%;
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 14px;
  padding: 16px;
  font-family: var(--serif); font-weight: 700; font-size: 13px; letter-spacing: .22em;
  cursor: pointer; margin-top: 6px;
  box-shadow: 0 10px 24px rgba(20, 18, 16, .16);
  transition: transform .12s ease, box-shadow .2s ease, opacity .2s ease;
}
.submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(20, 18, 16, .22); }
.submit:active { transform: translateY(0); }
.submit:disabled { opacity: .55; cursor: progress; box-shadow: none; }

/* ============================================================
   LOKACIJE (linijske ilustracije, stil reference)
   ============================================================ */
.locations { position: relative; z-index: 2; padding: 30px 26px 40px; }
.loc-list { display: flex; flex-direction: column; gap: 40px; }
.loc {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.loc-icon { width: 72px; height: 72px; color: var(--gold); margin-bottom: 14px; }
.loc-time {
  display: block; font-size: 16px; letter-spacing: .14em; color: var(--ink-soft);
}
.loc-name {
  display: block; font-style: italic; font-size: 28px; line-height: 1.1;
  margin: 8px 0 12px;
}
.loc-place {
  display: block; font-weight: 700; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.6; color: var(--ink);
}
.loc-btn {
  display: inline-block; margin-top: 16px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--gold);
  transition: color .2s ease, border-color .2s ease;
}
.loc-btn:hover { color: var(--gold); }

/* ============================================================
   HVALA EKRAN
   ============================================================ */
.thanks-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  padding: 30px 24px;
}
.thanks-wrap .title { width: 100%; max-width: 420px; align-self: flex-end; }
.thanks {
  font-weight: 700; font-size: 23px; letter-spacing: .06em; line-height: 1.5;
  margin-top: 36px;
}

/* ============================================================
   DESKTOP — prava web stranica (>= 900px)
   ============================================================ */
@media (min-width: 900px) {
  .view { padding: 0; }

  .invite {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-areas:
      "hero hero"
      "schedule rsvp"
      "locations locations";
    column-gap: 64px;
    row-gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 70px 56px 110px;
    align-items: start;
  }

  .hero {
    grid-area: hero;
    justify-content: center;
    min-height: auto;
    padding: 10px 0 24px;
  }
  .title { max-width: 760px; }

  .schedule {
    grid-area: schedule;
    text-align: left;
    padding: 20px 0 0;
    align-self: center;
  }
  .date { font-size: 26px; margin-bottom: 34px; }
  .s-time { font-size: 17px; }
  .s-name { font-size: 21px; }
  .s-place { font-size: 15px; }
  .schedule-item { margin-bottom: 26px; }

  .rsvp {
    grid-area: rsvp;
    padding: 30px 34px 34px;
    background: rgba(255, 255, 255, .45);
    border: 1px solid rgba(20, 18, 16, .08);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(20, 18, 16, .08);
    backdrop-filter: blur(2px);
  }
  .rsvp-intro { font-size: 15px; }

  /* na desktopu cvjetovi u kutovima cijelog ekrana */
  .flower--top-left  { width: 300px; top: -30px;  left: -40px; }
  .flower--top-right { width: 230px; top: 24px;    right: -30px; }
  .flower--bottom-left  { width: 240px; left: -30px;  bottom: -20px; }
  .flower--bottom-right { width: 300px; right: -40px; bottom: -30px; }

  /* HVALA ekran: lijevi kutovi zrcale desne i na desktopu */
  #hvala .flower--top-left    { width: 230px; top: 24px;    left: -30px; }
  #hvala .flower--bottom-left { width: 300px; left: -40px;  bottom: -30px; }

  /* desni rub cvijeta dira lijevi rub kartice forme */
  .form { padding-left: 0; }
  .flower--form-left { width: 150px; left: -150px; right: 100%; margin-right: -6px; top: 50%; transform: translateY(-50%); }

  /* lokacije: tri kartice u redu, pune širine ispod svega */
  .locations { grid-area: locations; padding: 40px 0 0; }
  .loc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

  .thanks-wrap {
    max-width: 760px; margin: 0 auto;
    min-height: 100vh; justify-content: center; align-items: center;
    text-align: center;
  }
  .thanks-wrap .title { align-self: center; max-width: 520px; }
  .thanks { font-size: 30px; text-align: center; }
}

@media (min-width: 1280px) {
  .invite { max-width: 1180px; column-gap: 90px; }
}

/* ============================================================
   MOBILNE DORADE (samo < 900px — desktop netaknut)
   ============================================================ */
@media (max-width: 899px) {
  /* Slika 1: naslov veći + malo ulijevo (da ne prekriva cvjetove u kutu) */
  .hero { padding: 30px 34px 6px 4px; }
  .title { max-width: 560px; }

  /* Slika 1: zlatni cvijet manji */
  .flower--top-left { width: 40%; left: -10%; }

  /* Slika 1: raspored (datum + termini) manji */
  .schedule { padding-top: 18px; }
  .date { font-size: 17px; margin-bottom: 18px; }
  .schedule-item { margin-bottom: 15px; }
  .s-time { font-size: 13px; }
  .s-name { font-size: 15px; }
  .s-place { font-size: 12px; }

  /* Slika 3: lokacije lijevo poravnate u liniji */
  .loc { align-items: flex-start; text-align: left; }

  /* Slika 4: ekran zahvale — naslov veći, poruka manja */
  .thanks-wrap { padding: 30px 8px; }
  .thanks-wrap .title { max-width: 560px; }
  .thanks { font-size: 19px; margin-top: 28px; }
}
