body {
    font-family: 'Cormorant', serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    min-height: 100vh;
}

/* Стили для блокирующего попапа */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content {
    background: white;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: slideIn 0.6s ease-out;
    position: relative;
}

.popup-image {
    margin-bottom: 30px;
}

.popup-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-text h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 42px;
    color: #333;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.popup-text p {
    font-size: 20px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.open-btn {
    background:white;
    color: black;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid black;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.open-btn:active {
    transform: translateY(-1px);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Скрытие основного контента при открытом попапе */
body.popup-open .container {
    filter: blur(5px);
    pointer-events: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .popup-content {
        padding: 30px 20px;
    }
    
    .popup-text h2 {
        font-size: 36px;
    }
    
    .popup-text p {
        font-size: 18px;
    }
    
    .open-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

.container {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.hero {
    text-align: center;
    color: black;
}
h1,
.hero-content h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 20px;
}

.hero-content .date {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    font-weight: 400;
    margin: 10px 0;
}

.hero-content img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 10px;
}

.invitation {
    text-align: center;
    color: black;
}

.invitation-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 20px;
}

.invitation-content p {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    margin: 10px 0;
}

.coundown {
    text-align: center;
    color: black;
    margin: 40px 0;
}

.coundown-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 30px;
}

.coundown-timer {
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.countdown-item {
    width: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-number {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    font-family: 'Cormorant', serif;
}

.countdown-label {
    font-size: 16px;
    color: #000;
    font-weight: 400;
    letter-spacing: 1px;
}

.countdown-finished {
    font-size: 24px;
    font-weight: 600;
    color: #28a745;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 15px;
    border: 2px solid #28a745;
}

.program {
    text-align: center;
    color: black;
}

.program-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 30px;
}   

.program-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.program-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}   

.program-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.program-item-content {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 24px;
}

.program-item-content h3 {
    font-size: 38px;
    font-weight: 600;
    color: #000;
    margin: 0;
    font-family: 'Cormorant', serif;
}

.program-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
    margin-top: 8px;
    font-family: 'Cormorant', serif;
}

.program-item-description {
    font-size: 18px;
    color: #000;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
    text-align: left;
} 

.footer {
    text-align: center;
    color: black;
}

.location {
    text-align: center;
    color: black;
}

.location-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 30px;
}

.location-content .location-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.location-content p {
    font-size: 18px;
    font-weight: 400;
    margin: 10px 0;
}

.location-content iframe {
    margin-top: 30px;
    border-radius: 10px;
}

.footer img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: 10px;
}

.footer h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 30px;
}

/* Стили для формы RSVP */
.form {
    text-align: center;
    color: black;
}

.form-content h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 38px;
    margin-bottom: 20px;
}

.form-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.form-step h3 {
    font-family: 'Cormorant', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.choice-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 20px 30px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant', serif;
    font-size: 18px;
    font-weight: 500;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #ff6b6b;
}

.choice-btn[data-choice="yes"]:hover {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
}

.choice-btn[data-choice="no"]:hover {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-color: #dc3545;
}

.choice-btn.selected {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.choice-icon {
    font-size: 32px;
}

.choice-text {
    font-size: 16px;
    font-weight: 600;
}

.name-input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.step2-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

#guest-name {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-family: 'Cormorant', serif;
    text-align: center;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#guest-name:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.back-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cormorant', serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.next-btn {
    background: white;
    color: black;
    border: 1px solid black;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cormorant', serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.confirmation-message {
    text-align: center;
}

.confirmation-message p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #333;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cormorant', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Анимации для переходов между шагами */
.form-step {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .rsvp-form {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .choice-btn {
        min-width: 250px;
    }
    
    .form-step h3 {
        font-size: 20px;
    }
    
    .step2-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-btn, .next-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Стили для сообщений об успехе и ошибке */
.success-message, .error-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon, .error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-message p, .error-message p {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 15px;
    border: 2px solid #28a745;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-radius: 15px;
    border: 2px solid #dc3545;
}