/* RSVP Page Styles */

/* Section Headers */
.rsvp-hero {
    background: linear-gradient(135deg, #f3f0ea 0%, #dcc3a5 100%);
    padding: 3rem 0;
    text-align: center;
}

/* RSVP Form */
.rsvp-form {
    padding: 4rem 0;
}

.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.alert-success {
    background: #dcc3a5;
    color: #23435c;
    border: 1px solid #c99971;
}

.alert-danger {
    background: #f3f0ea;
    color: #843f22;
    border: 1px solid #a89a97;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #23435c;
}

.form-control {
    padding: 0.75rem;
    border: 2px solid #a89a97;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f3f0ea;
}

.form-control:focus {
    outline: none;
    border-color: #c6793d;
    box-shadow: 0 0 0 3px rgba(198, 121, 61, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
}

.text-danger {
    color: #843f22;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-actions {
    text-align: center;
}

/* Guest Selection Styles */
.guests-container {
    margin-bottom: 2rem;
}

.guest-card {
    background: white;
    border: 2px solid #e8e4d8;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(35, 67, 92, 0.1);
}

.guest-card:hover {
    border-color: #d4c4a8;
    box-shadow: 0 4px 12px rgba(35, 67, 92, 0.15);
}

.guest-header {
    background: #f8f6f0;
    border-bottom: 1px solid #e8e4d8;
}

.guest-toggle {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: #23435c;
    margin: 0;
    position: relative;
    padding-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 8px;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #d4c4a8;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #f8f6f0;
    border-color: #b8a890;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #8b7355;
    border-color: #8b7355;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.guest-details {
    padding: 1.5rem;
    background: white;
}

.guest-details .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.guest-details .form-group {
    margin-bottom: 0;
}

.guest-details .form-group.full-width {
    grid-column: 1 / -1;
}

/* Responsive Design for RSVP */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-header {
        padding: 1rem;
    }
    
    .guest-details {
        padding: 1rem;
    }
    
    .guest-details .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-label {
        font-size: 1rem;
        padding-left: 1.75rem;
    }
    
    .checkmark {
        height: 18px;
        width: 18px;
    }
    
    .checkbox-label .checkmark:after {
        left: 5px;
        top: 1px;
        width: 5px;
        height: 9px;
    }
}
