/* SCDF RSVP Form Custom Styles */

/* Page background and layout */
body {
    background: linear-gradient(135deg, #6a4c93, #8b5cf6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 20px 0;
}

/* Main container */
.container {
    max-width: 700px;
    margin: 0 auto;
}

/* Header image styling */
.header-image {
    margin-bottom: 25px;
    text-align: center;
}

.header-image img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

/* Main content box */
.content-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Invitation text styling */
.invitation-text {
    margin-bottom: 35px;
    text-align: center;
}

.invitation-text p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.greeting {
    font-weight: 600;
    color: #2d3748;
}

.invitation {
    font-size: 1.1rem;
    color: #6a4c93;
    font-weight: 500;
}

/* Form container */
.form-container {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
}

/* Form groups */
.form-group {
    margin-bottom: 25px;
}

/* Form labels */
.form-label {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.required {
    color: #e53e3e;
}

/* Input fields */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6a4c93;
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1);
    background-color: #ffffff;
}

.form-control:hover {
    border-color: #cbd5e0;
}

/* Attendance section */
.attendance-label {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: #2d3748;
}

.attendance-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Attendance buttons */
.btn-attendance {
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
}

.btn-yes {
    background-color: #f0fff4;
    color: #22543d;
    border-color: #c6f6d5;
}

.btn-yes:hover {
    background-color: #c6f6d5 !important;
    border-color: #9ae6b4;
    color: #22543d;
}

.btn-check:checked + .btn-yes {
    background-color: #48bb78;
    color: white;
    border-color: #48bb78;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-no {
    background-color: #fffafa;
    color: #742a2a;
    border-color: #fed7d7;
}

.btn-no:hover {
    background-color: #fed7d7 !important;
    border-color: #feb2b2;
    color: #742a2a;
}

.btn-check:checked + .btn-no {
    background-color: #f56565;
    color: white;
    border-color: #f56565;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

/* Submit section */
.submit-section {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.btn-submit {
    background: linear-gradient(135deg, #6a4c93, #8b5cf6);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #553c7b, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 76, 147, 0.4);
    color: white;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .content-box {
        padding: 25px;
        margin: 15px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .attendance-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-attendance {
        min-width: 200px;
    }
}

/* ========================================
   THANK YOU PAGE STYLES
   ======================================== */

/* Thank you content box */
.thankyou-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Success icon */
.success-icon {
    margin-bottom: 30px;
}

.success-icon i {
    font-size: 4rem;
    color: #48bb78;
    animation: checkmark 0.8s ease-in-out;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main message content */
.message-content {
    max-width: 600px;
    margin: 0 auto;
}

.thankyou-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.confirmation-message {
    background: #f0fff4;
    border: 2px solid #c6f6d5;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 35px;
}

.confirmation-message .lead {
    color: #22543d;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

/* Contact section */
.contact-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid #e2e8f0;
}

.contact-title {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-emails {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.email-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 300px;
    text-align: center;
}

.email-item:hover {
    border-color: #6a4c93;
    box-shadow: 0 4px 12px rgba(106, 76, 147, 0.1);
}

.email-item i {
    color: #6a4c93;
    font-size: 1.1rem;
}

.email-item a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.email-item a:hover {
    color: #6a4c93;
    text-decoration: underline;
}

/* Additional information cards */
.additional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #6a4c93;
    box-shadow: 0 4px 12px rgba(106, 76, 147, 0.1);
}

.info-card i {
    font-size: 2rem;
    color: #6a4c93;
    flex-shrink: 0;
}

.info-card h4 {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.info-card p {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Action section */
.action-section {
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.btn-back {
    background: linear-gradient(135deg, #6a4c93, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.3);
}

.btn-back:hover {
    background: linear-gradient(135deg, #553c7b, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 76, 147, 0.4);
    color: white;
}

.btn-back:active {
    transform: translateY(0);
}

/* Thank You Page Responsive design */
@media (max-width: 768px) {
    .thankyou-box {
        padding: 35px 25px;
        margin: 15px;
    }
    
    .thankyou-title {
        font-size: 1.8rem;
    }
    
    .confirmation-message .lead {
        font-size: 1.1rem;
    }
    
    .additional-info {
        grid-template-columns: 1fr;
    }
    
    .email-item {
        min-width: auto;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-emails {
        gap: 12px;
    }
}

/* YES button: checked + hover */
.btn-check:checked + .btn-yes:hover {
    background-color: #2f855a !important; /* darker green */
    border-color: #2f855a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(47, 133, 90, 0.4) !important;
}

/* NO button: checked + hover */
.btn-check:checked + .btn-no:hover {
    background-color: #c53030 !important; /* darker red */
    border-color: #c53030 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(197, 48, 48, 0.4) !important;
}
