:root {
    --white: #ffffff;
    --black: #121212;
    --accent: #AF9B7D;
    --overlay: rgba(0, 0, 0, 0.3);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--white);
    overflow-x: hidden;
}

/* Hero Sekce */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8); /* Nahrazuje overlay v kódu */
    transition: transform 10s ease-out;
}

.hero:hover .hero-bg img {
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.sub-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    margin: 2rem auto;
}

.date {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    font-weight: 300;
}

.place {
    position: absolute;
    /* bottom: 30px; */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
}

.place {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Tlačítko */
.cta-button {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Scroll Indikátor */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--white), transparent);
}




/* Úprava úvodního textu */
.sub-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.7em; /* Zvýšeno pro větší luxus */
    font-size: 0.8rem;
    font-weight: 400; /* Výraznější tloušťka */
    margin-bottom: 1rem;
    opacity: 1; /* Maximální viditelnost */
}

/* Úprava datumu */
.date {
    text-transform: uppercase;
    letter-spacing: 0.4em; /* Výraznější prostrkání */
    font-size: 1rem; /* Mírně zvětšeno */
    font-weight: 400; /* Sjednoceno s úvodním textem */
    display: block;
    margin-top: 1rem;
}

/* Úprava oddělovače (aby odpovídal výraznějšímu stylu) */
.divider {
    width: 80px; /* O něco delší linka */
    height: 1.5px; /* Mírně silnější linka */
    background-color: var(--white); /* Bílá pro maximální čistotu */
    margin: 1.5rem auto;
    opacity: 0.8;
}


.sub-title {
    font-family: 'Montserrat', sans-serif; /* Změna fontu */
    font-weight: 300; /* Tenčí linie pro eleganci */
    text-transform: uppercase;
    letter-spacing: 0.8em; 
    font-size: 0.75rem;
    margin-bottom: 1.0rem;
    display: block;
}

.date {
    font-family: 'Montserrat', sans-serif; /* Změna fontu */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.95rem;
    display: block;
    margin-top: 1rem;
}


/* Overlay základ */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98); /* Téměř čistě bílá */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    max-width: 600px;
    width: 90%;
    text-align: center;
    color: var(--black);
}

/* Nadpis formuláře */
.form-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-divider {
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 3rem;
}

/* Styl vstupů - čistý minimalismus */
.input-group {
    margin-bottom: 2.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.input-group input, 
.input-group select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.8rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-bottom-color: var(--black);
}

/* Tlačítka v overlay */
.submit-btn {
    width: 100%;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 1rem;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    font-weight: 200;
}


#conditionalFields {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.guest-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}

.secondary-btn {
    background: none;
    border: 1px dashed var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 0.5rem;
    width: 100%;
    transition: all 0.3s;
}

.secondary-btn:hover {
    border-style: solid;
    background: rgba(175, 155, 125, 0.05);
}

.remove-guest {
    background: none;
    border: none;
    color: #cc0000;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}


.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dva sloupce na desktopu */
    gap: 12px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--black);
}

/* Minimalistický checkbox */
.checkbox-item input[type="checkbox"] {
    accent-color: var(--accent); /* Barva tvého bronzu/zlata */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#otherDrinkText {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 0;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.checkbox-grid {
    display: grid;
    /* Na mobilu 1 sloupec, na tabletu 2, na desktopu 3 */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; /* Mírně menší pro úsporu místa */
    cursor: pointer;
    color: var(--black);
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}



/* Overlay základ - úprava */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    
    /* Změna z flexu na blok, aby fungoval přirozený scroll */
    display: block; 
    overflow-y: auto; /* Povolí vertikální scroll */
    -webkit-overflow-scrolling: touch; /* Plynulý scroll na iOS */
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Úprava vnitřního kontejneru */
.overlay-content {
    max-width: 600px;
    width: 90%;
    margin: 80px auto; /* Margin nahoře a dole vytvoří prostor pro scroll */
    text-align: center;
    color: var(--black);
    position: relative; /* Pro správné vykreslení */
}

/* Fixní tlačítko pro zavření, aby neuteklo při scrollu */
.close-btn {
    position: fixed; /* Změna z absolute na fixed */
    top: 20px;
    right: 20px;
    background: white; /* Přidáme pozadí, aby bylo vidět i přes scrollující text */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    line-height: 0;
}


.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fotka sama o sobě může zůstat ostrá, efekt uděláme vrstvou nad ní */
}

/* Tato vrstva vytvoří to mléčné sklo */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Mléčný nádech (bílá s nízkým alfou) */
    background: rgba(255, 255, 255, 0.2); 
    /* Klíč k efektu: rozostření pozadí */
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%); /* Podpora pro Safari */
}


.hero-logo {
    width: 200px; /* Uprav podle detailnosti tvého loga */
    height: auto;
    margin: 0 auto 3.5rem; /* Centrování a mezera pod logem */
    display: block;
    
    /* Pokud je logo v bílé barvě, jemný stín pomůže čitelnosti na mléčném skle */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    
    /* Jemný fade-in při načtení */
    animation: fadeInLogo 1.5s ease-out;
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}