* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #2980b9;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #ece6d7;
    color: var(--dark-color);
    background-image: radial-gradient(circle at 20% 80%, rgba(243, 156, 18, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(155, 89, 182, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.header-bg {
    width: 100%;
    height: auto;
    display: block;
}

.anniversary-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #ff0000, #ff4444, #ff6666);
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    padding: 12px 30px;
    border-radius: 50px;
    transform: rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
    border: 3px solid white;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { transform: rotate(5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
    100% { transform: rotate(5deg) scale(1); }
}

.description {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
    border-right: 5px solid var(--secondary-color);
}

.description-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.description-text .highlight {
    color: var(--accent-color);
    font-weight: 700;
}

.description-icon {
    color: var(--secondary-color);
    margin: 0 10px;
    font-size: 1.5rem;
}

.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.panel {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 300px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.panel-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    color: var(--secondary-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.option {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.option.selected {
    border-color: var(--primary-color);
    background-color: rgba(41, 128, 185, 0.05);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.2);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cake-section {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cake-container {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.cake-container:hover {
    border-color: var(--secondary-color);
}

.cake-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.cake-image {
    width: 100%;
    max-width: 500px;
    height: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    overflow: hidden;
    border: 5px solid #f5e6d3;
}

#cake-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
}

#cake-img.show {
    opacity: 1;
}

.decorations-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.decoration-emoji {
    font-size: 2.5rem;
    position: absolute;
    animation: float 3s infinite ease-in-out;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.decoration-emoji.show {
    opacity: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

.cake-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ece6d7, #e0d9c6);
    border-radius: 10px;
    color: #8b4513;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    z-index: 0;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    max-width: 250px;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), #3498db);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #1a5276, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(to right, var(--secondary-color), #f1c40f);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #d68910, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.gift-section {
    display: none;
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease;
    border: 2px solid var(--secondary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gift-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.gift-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.gift-message {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.6;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

.submit-btn {
    background: linear-gradient(to right, var(--accent-color), #e67e22);
    color: white;
    width: 100%;
    max-width: 400px;
    padding: 17px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 10px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    margin-right: auto;
}

.submit-btn:hover {
    background: linear-gradient(to right, #c0392b, var(--accent-color));
}

.confetti {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    top: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.selection-info {
    background-color: rgba(41, 128, 185, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
}

footer {
    text-align: center;
    margin-top: 40px;
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0.8;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.loading-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 2px dashed var(--primary-color);
    margin-top: 20px;
}

.result-message {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    animation: fadeIn 0.5s ease;
    margin-top: 20px;
}

.result-success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 2px solid #2ecc71;
}

.result-warning {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 2px solid #f1c40f;
}

.result-error {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
    border: 2px solid #e74c3c;
}

/* Стили для чекбокса согласия */
.consent-group {
    margin-top: 25px;
    padding: 15px;
    background-color: rgba(249, 249, 249, 0.8);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.consent-checkbox label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--dark-color);
    margin-bottom: 0;
    font-weight: normal;
}

.consent-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.consent-link:hover {
    color: #1a5276;
    border-bottom-color: var(--primary-color);
}

/* Стили для кнопки "Выйти" */
.exit-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
    text-align: center;
}

.exit-btn {
    background: linear-gradient(to right, #7f8c8d, #95a5a6);
    color: white;
    width: 100%;
    max-width: 300px;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.exit-btn:hover {
    background: linear-gradient(to right, #636e72, #7f8c8d);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Адаптивные стили для бейджа */
@media (max-width: 1024px) {
    .anniversary-badge {
        font-size: 1.4rem;
        padding: 9px 22px;
        background: linear-gradient(45deg, #ff0000, #ff3333, #ff5555);
    }
    
    .description-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .anniversary-badge {
        font-size: 1.1rem;
        padding: 7px 18px;
        top: 15px;
        right: 15px;
        background: linear-gradient(45deg, #ff0000, #ff2222, #ff4444);
    }
    
    .description {
        padding: 15px;
        margin: 0 auto 25px;
    }
    
    .description-text {
        font-size: 1.1rem;
    }
    
    .description-icon {
        font-size: 1.3rem;
        margin: 0 5px;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cake-image {
        height: 300px;
    }
    
    .panel {
        padding: 20px;
    }
    
    .consent-checkbox {
        flex-direction: column;
        gap: 10px;
    }
    
    .consent-checkbox input[type="checkbox"] {
        margin-top: 0;
    }
    
    .exit-btn {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .anniversary-badge {
        font-size: 0.7rem;
        padding: 5px 13px;
        top: 10px;
        right: 10px;
        background: linear-gradient(45deg, #ff0000, #ff1111, #ff3333);
    }
    
    .description {
        padding: 12px;
        margin: 0 auto 20px;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .description-icon {
        font-size: 1.1rem;
        margin: 0 3px;
    }
    
    .consent-group {
        padding: 12px;
    }
    
    .consent-checkbox label {
        font-size: 0.9rem;
    }
    
    .exit-section {
        margin-top: 25px;
        padding-top: 15px;
    }
}

@media (max-width: 360px) {
    .anniversary-badge {
        font-size: 0.85rem;
        padding: 4px 10px;
        top: 8px;
        right: 8px;
        background: linear-gradient(45deg, #ff0000, #ff0000, #ff2222);
    }
    
    .description-text {
        font-size: 0.95rem;
    }
}/* Стили для успешного подтверждения */
.success-message {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--secondary-color);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 15px;
    animation: bounce 1s ease;
}

.success-message h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-message p {
    color: var(--dark-color);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gift-details {
    background-color: rgba(243, 156, 18, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    border-left: 4px solid var(--secondary-color);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.congrats-text {
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.congrats-text p {
    font-size: 1.1rem;
    color: #27ae60;
    margin-bottom: 10px;
    font-style: italic;
}

.congrats-text p:last-child {
    margin-bottom: 0;
}

/* Адаптивные стили для подтверждения */
@media (max-width: 768px) {
    .success-message {
        padding: 20px;
    }
    
    .success-icon {
        font-size: 3.5rem;
    }
    
    .success-message h3 {
        font-size: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .detail-item i {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .success-message {
        padding: 15px;
    }
    
    .gift-details {
        padding: 15px;
    }
	
	.detail-item br {
		display: block;
		content: "";
		margin-top: 3px;
}