/* ====================================
   RSVP SECTION - ELEGANT REDESIGN
==================================== */

.rsvp-section-elegant {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #1a2332 0%, #283655 50%, #1a2332 100%);
    position: relative;
    overflow: hidden;
}

.rsvp-section-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Header Section */
.rsvp-header-elegant {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.rsvp-ornament-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.ornament-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.rsvp-ornament-top i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    animation: gemSparkle 2s ease-in-out infinite;
}

@keyframes gemSparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.rsvp-title-elegant {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 400;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.rsvp-subtitle {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
}

.rsvp-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.rsvp-date-badge i {
    font-size: 1.1rem;
}

/* Form Container */
.rsvp-form-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.rsvp-form-elegant {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 45px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Form Fields */
.form-field-elegant {
    position: relative;
    margin-bottom: 30px;
}

.input-icon-wrapper {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
    font-size: 1.1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.input-elegant {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid rgba(40, 54, 85, 0.1);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-elegant:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    padding-left: 50px;
}

.input-elegant:focus + .label-elegant,
.input-elegant:not(:placeholder-shown) + .label-elegant {
    opacity: 0;
    transform: translateY(-10px);
}

.label-elegant {
    position: absolute;
    left: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(40, 54, 85, 0.5);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Form Row */
.form-row-elegant {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Divider */
.form-divider {
    position: relative;
    text-align: center;
    margin: 40px 0 35px;
}

.form-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.divider-text {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.98);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-gold);
}

/* Attendance Section */
.attendance-section {
    margin-bottom: 35px;
}

.question-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    text-align: center;
}

.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: rgba(212, 175, 55, 0.03);
    border: 2px solid rgba(40, 54, 85, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.card-text {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.card-check {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent-gold);
    font-size: 1.3rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.radio-card:hover .card-content {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.radio-card input[type="radio"]:checked ~ .card-content {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
    border-color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
}

.radio-card input[type="radio"]:checked ~ .card-content .card-check {
    opacity: 1;
    transform: scale(1);
}

.radio-card input[type="radio"]:checked ~ .card-content .card-icon {
    transform: scale(1.15);
}

/* Preferences Section */
.preferences-section {
    margin-bottom: 35px;
}

.checkbox-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.checkbox-pill {
    position: relative;
    cursor: pointer;
}

.checkbox-pill input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pill-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(212, 175, 55, 0.03);
    border: 2px solid rgba(40, 54, 85, 0.1);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.pill-content i {
    font-size: 1rem;
    color: var(--accent-gold);
}

.checkbox-pill:hover .pill-content {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.checkbox-pill input[type="checkbox"]:checked ~ .pill-content {
    background: linear-gradient(135deg, var(--accent-gold), var(--rose-gold));
    border-color: var(--accent-gold);
    color: var(--primary-navy);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.checkbox-pill input[type="checkbox"]:checked ~ .pill-content i {
    color: var(--primary-navy);
}

/* Message Section */
.message-section {
    margin-bottom: 35px;
}

.textarea-wrapper {
    position: relative;
}

.textarea-elegant {
    width: 100%;
    min-height: 120px;
    padding: 18px 20px;
    border: 2px solid rgba(40, 54, 85, 0.1);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: white;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.textarea-elegant:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.textarea-elegant::placeholder {
    color: rgba(40, 54, 85, 0.4);
    font-style: italic;
}

.char-counter-elegant {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(40, 54, 85, 0.5);
    margin-top: 8px;
    font-family: var(--font-body);
}

#charCount {
    font-weight: 600;
    color: var(--accent-gold);
}

/* Submit Button */
.submit-btn-elegant {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--rose-gold) 100%);
    border: none;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-navy);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.submit-btn-elegant:hover .btn-shimmer {
    left: 100%;
}

.submit-btn-elegant:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.submit-btn-elegant:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.privacy-note {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(40, 54, 85, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.privacy-note i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* Success Message */
.success-message-elegant {
    text-align: center;
    padding: 60px 40px;
    display: none;
}

.success-icon-elegant {
    margin-bottom: 30px;
}

.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4);
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.icon-circle i {
    font-size: 3rem;
    color: white;
}

.success-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.success-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-reset-elegant {
    padding: 14px 28px;
    background: transparent;
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-reset-elegant:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* Action Buttons (Download & WhatsApp) */
.success-actions {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    box-sizing: border-box;
}

.download-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--rose-gold));
    color: var(--primary-navy);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.action-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rsvp-section-elegant {
        padding: 60px 0 80px;
    }
    
    .rsvp-title-elegant {
        font-size: 2.2rem;
    }
    
    .rsvp-subtitle {
        font-size: 1rem;
    }
    
    .rsvp-form-elegant {
        padding: 35px 25px;
    }
    
    .form-row-elegant {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .radio-cards {
        grid-template-columns: 1fr;
    }
    
    .checkbox-pills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .rsvp-section-elegant {
        padding: 50px 0 60px;
    }
    
    .rsvp-title-elegant {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .rsvp-subtitle {
        font-size: 0.95rem;
    }
    
    .rsvp-date-badge {
        font-size: 0.8rem;
        padding: 10px 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rsvp-form-elegant {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .input-elegant {
        padding: 15px 18px 15px 45px;
        font-size: 0.95rem;
    }
    
    .input-icon-wrapper {
        left: 15px;
        font-size: 1rem;
    }
    
    .label-elegant {
        left: 45px;
        font-size: 0.95rem;
    }
    
    .question-title {
        font-size: 1rem;
    }
    
    .card-content {
        padding: 20px 12px;
        min-height: 100px;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    .pill-content {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .textarea-elegant {
        min-height: 100px;
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .submit-btn-elegant {
        padding: 16px 25px;
        font-size: 1.05rem;
    }
    
    .success-title {
        font-size: 1.8rem;
    }
    
    .success-text {
        font-size: 1rem;
    }
    
    .icon-circle {
        width: 80px;
        height: 80px;
    }
    
    .icon-circle i {
        font-size: 2.5rem;
    }
}
