/* --- STILURI GENERALE ȘI FONTURI --- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --color-text: #3f3f3f;
    --color-bg: #fdfdfd;
    --color-accent: #6a8274; /* Un verde elegant, similar cu costumul */
    --color-dark-bg: #2c2c2c;
    --color-light-text: #f4f4f4;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    line-height: 1.8;
    font-weight: 300;
    overflow-x: hidden; /* Previne scroll-ul orizontal */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    color: var(--color-accent);
}

h2 { font-size: 2.5em; margin-bottom: 20px; }
h3 { font-size: 1.6em; }

/* --- EFECTUL PARALLAX --- */
.hero-section, .parallax-section {
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* MAGIA ESTE AICI! */
    background-attachment: fixed; 
}

/* --- SECȚIUNEA HERO (PRIMA PAGINĂ) --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
/* Overlay pentru lizibilitatea textului peste poză */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
}
.hero-content {
    position: relative; /* Asigură că textul e deasupra overlay-ului */
    z-index: 1;
}
.hero-section h1 { font-size: 4em; color: white; letter-spacing: 3px; text-transform: uppercase; }
.hero-section h2 { font-size: 2em; color: white; margin-bottom: -15px; }
.hero-section p { font-size: 1.5em; }

/* --- SECȚIUNILE DE CONȚINUT --- */
main {
    background-color: var(--color-bg);
}
.content-section {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.content-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}
.parents-section, .event-details {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
}
.nasi { font-size: 1.2em; }

/* --- SECȚIUNILE PARALLAX INTERMEDIARE --- */
.parallax-section {
    height: 50vh;
    min-height: 400px;
}

/* --- SECȚIUNEA TIMER --- */
.dark-bg {
    background-color: var(--color-dark-bg);
    color: var(--color-light-text);
}
.dark-bg h2 { color: white; }
#timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.timer-box { 
    text-align: center; 
    text-transform: uppercase;
    font-size: 0.9em;
    min-width: 100px;
}
.timer-box span {
    font-size: 3em;
    font-family: var(--font-heading);
    color: var(--color-accent);
    display: block;
}

/* --- SECȚIUNEA RSVP (FORMULAR) --- */
.rsvp-section {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
}
.rsvp-image-container, .rsvp-form-container {
    flex: 1;
}
.rsvp-image-container img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.rsvp-form-container p {
    max-width: none; /* Resetează max-width pentru paragraful din container */
    margin-left: 0;
}

/* Stiluri pentru formular, aduse din vechiul CSS si adaptate */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input[type="radio"], .form-group input[type="checkbox"] {
    margin-right: 10px;
}
input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: var(--font-body);
}
button[type="submit"] {
    background-color: var(--color-accent);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-family: var(--font-body);
    font-weight: bold;
    transition: background-color 0.3s;
}
button[type="submit"]:hover {
    background-color: #597063; /* O nuanță mai închisă */
}
.hidden {
    display: none;
}
#form-message {
    margin-top: 20px;
    font-weight: bold;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}
#form-message.success { background-color: #e8f5e9; color: #2e7d32; }
#form-message.error { background-color: #ffebee; color: #c62828; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    background-color: var(--color-dark-bg);
    color: var(--color-light-text);
    font-family: var(--font-heading);
    font-size: 1.3em;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    h2 { font-size: 2em; }
    .hero-section h1 { font-size: 2.5em; }

    .second-zone {
        
    }

    .hero-section {
        background-repeat: no-repeat;
        background-size: cover;
    }

    .parents-section, .event-details, .rsvp-section {
        flex-direction: column;
    }
    .content-section {
        padding: 60px 20px;
    }
    .rsvp-section {
        text-align: center;
        padding: 1rem 0.5rem;
    }
    .rsvp-form-container {
        margin-top: 30px;
    }
}

@supports (-webkit-touch-callout: none) {
    .hero-section, .parallax-section {
        background-attachment: scroll;
    }
}
