:root {
    --bg: #FDF5F0;
    --primary: #C4687A;
    --secondary: #E8A0B0;
    --light: #F5D5DC;
    --text: #5C3A42;
    --text-secondary: #8B6570;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- ОСНОВНА СТРУКТУРА --- */
.page-wrapper {
    display: grid;
    grid-template-columns: 45fr 55fr;
    height: 100vh;
    overflow: hidden; 
}

/* --- ЛЯВА ЧАСТ (Снимката) --- */
.invitation-panel {
    background: radial-gradient(ellipse at center, #FEF8F4 0%, #F5E6DD 70%, #EDD8CE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* По подразбиране слагаме падинг за много големи екрани */
    padding: 0 3vw; 
    height: 100vh;
}

.invitation-panel img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    object-position: center;
}

/* --- ДЯСНА ЧАСТ (Формата) --- */
.rsvp-panel {
    padding: 3rem 2rem;
    overflow-y: auto; 
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    background: linear-gradient(135deg, var(--bg) 0%, var(--white) 50%, var(--bg) 100%);
}

.rsvp-container { 
    max-width: 480px; 
    width: 100%; 
    margin-bottom: 2rem; 
}

/* --- ТИПОГРАФИЯ И ПОЛЕТА --- */
h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--primary); text-align: center; margin-bottom: 0.5rem; }
.subtitle { text-align: center; font-size: 1.1rem; margin-bottom: 2rem; color: var(--text); }

.form-group { margin-bottom: 1.4rem; }
label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.5rem; }

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 104, 122, 0.1);
}

/* --- ПОЛЕТА ЗА ДЕЦА И БУТОНИ --- */
.child-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    animation: fadeIn 0.4s ease;
}

.remove-child-btn {
    background: #fdf5f6;
    color: var(--primary);
    border: 1px solid var(--secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    flex-shrink: 0;
}
.remove-child-btn:hover { background: var(--primary); color: white; }

.add-child-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 2px dashed var(--secondary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.add-child-btn:hover { background: var(--light); border-color: var(--primary); }

/* --- TOGGLE БУТОНИ --- */
.toggle-group { display: flex; gap: 10px; }
.toggle-option { flex: 1; cursor: pointer; }
.toggle-option input { display: none; }
.toggle-label {
    display: block;
    padding: 0.6rem;
    text-align: center;
    border: 1px solid var(--light);
    border-radius: 25px;
    transition: all 0.3s ease;
    background: white;
}
.toggle-option input:checked + .toggle-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- БУТОН ИЗПРАТИ --- */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 104, 122, 0.3);
}

/* --- ИНФО СЕКЦИЯ ОТДОЛУ --- */
.info-section {
    margin-top: 2.5rem;
    border-top: 1px solid var(--light);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}
.info-note { color: var(--text-secondary); margin-bottom: 1rem; font-style: italic; }
.info-signature { margin-top: 1.5rem; line-height: 1.4; }
.info-signature strong { color: var(--primary); font-size: 1.1rem; }

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

/* =========================================
   --- РЕСПОНСИВ (МОБИЛНИ И ТАБЛЕТИ) ---
   ========================================= */

/* 1. За Лаптопи и Таблети (премахваме падинга отстрани) */
@media (max-width: 1200px) {
    .invitation-panel {
        padding: 0; /* Изображението опира плътно в ръбовете */
    }
}

/* 2. За Телефони и малки таблети (Снимката отива отгоре, формата отдолу) */
@media (max-width: 992px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        height: auto;
        overflow: auto; 
    }

    .invitation-panel {
        height: auto;
        padding: 0; /* Абсолютно никакъв падинг */
        background: transparent; /* Без светлокафяв фон */
    }

    .invitation-panel img {
        width: 100%; 
        height: auto; /* Височината се наглася автоматично според ширината */
        max-height: none; /* Премахваме ограниченията, за да не се реже */
        display: block; /* Премахва празното разстояние под снимката */
    }

    .rsvp-panel {
        padding: 2.5rem 1.5rem;
    }
}