/* RSVP Section Styles */
.wedding-rsvp {
    padding: 5rem 2rem;
    background:  #ffffff;
    font-family: 'Playfair Display', serif;
    color: #333;
}

.rsvp-container {
    max-width: 1500px;
    margin: 0 auto;
    background: #f3f3f3;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.rsvp-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rsvp-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #6a3093;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.rsvp-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #b388ff, #6a3093);
    border-radius: 3px;
}

.rsvp-subtitle {
    font-size: 1.6rem;
    color: #666;
    font-style: italic;
    max-width: 600px;
    margin: 10px auto 20px; /* top margin = 10px, bottom = 20px */
    line-height: 1.6;
    text-align: center;
}


/* Form Layout */
.rsvp-form {
    margin-top: 2rem;
}

.form-columns {
    display: flex;
    gap: 3rem;
}

.form-left-col, .form-right-col {
    flex: 1;
}

.form-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #555;
    font-size: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    font-family: 'Playfair Display', serif;
}

.form-control:focus {
    border-color: #b388ff;
    box-shadow: 0 0 0 3px rgba(179, 136, 255, 0.2);
    outline: none;
    background-color: white;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

/* Attendance Options */
.attendance-options {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.attendance-option {
    flex: 1;
    position: relative;
}

.attendance-option input {
    position: absolute;
    opacity: 0;
}

.attendance-option .option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fafafa;
    height: 100%;
}

.attendance-option input:checked + .option-content {
    border-color: #b388ff;
    background: #f3e5ff;
    color: #6a3093;
}

.attendance-option .bi {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.attendance-option input:checked + .option-content .bi-check-circle-fill {
    color: #4caf50;
}

.attendance-option input:checked + .option-content .bi-x-circle-fill {
    color: #f44336;
}

.attendance-option small {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #777;
    font-style: italic;
}

/* Character Count */
.char-count {
    text-align: right;
    font-size: 1rem;
    color: #888;
    margin-top: 0.5rem;
}

/* Submit Button */
.rsvp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, #9c64ff 0%, #6a3093 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.6rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(106, 48, 147, 0.3);
    font-family: 'Playfair Display', serif;
    position: relative;
    overflow: hidden;
}

.rsvp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 48, 147, 0.4);
}

.rsvp-submit-btn:active {
    transform: translateY(0);
}

.rsvp-submit-btn .bi {
    margin-left: 0.8rem;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.rsvp-submit-btn:hover .bi {
    transform: scale(1.2);
}

/* Invalid Feedback */
.invalid-feedback {
    display: none;
    color: #f44336;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.form-control.is-invalid {
    border-color: #f44336;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2);
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .form-columns {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .rsvp-container {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .rsvp-container {
        padding: 2.5rem;
    }
    
    .rsvp-title {
        font-size: 2.5rem;
    }
    
    .attendance-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .rsvp-container {
        padding: 2rem 1.5rem;
    }
    
    .wedding-rsvp {
        padding: 3rem 1rem;
    }
    
    .rsvp-title {
        font-size: 2.6rem;
    }
    
    .rsvp-submit-btn {
        width: 100%;
        padding: 1rem;
    }
}