/* ============================================
   SUMA Christmas 2025 Registration Form Styles
   ============================================ */

.suma-registration-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.suma-registration-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #d92121 0%, #061953 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(217, 33, 33, 0.3);
}

.suma-registration-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.suma-registration-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
}

/* Form Sections */
.suma-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.suma-form-section {
    margin-bottom: 40px;
}

.suma-form-section h3 {
    color: #d92121;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d92121;
}

/* Form Groups */
.suma-form-group {
    margin-bottom: 20px;
}

.suma-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.suma-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.suma-form-group .required {
    color: #e74c3c;
    font-weight: bold;
}

/* Form Inputs */
.suma-form-group input[type="text"],
.suma-form-group input[type="email"],
.suma-form-group input[type="tel"],
.suma-form-group input[type="number"],
.suma-form-group select,
.suma-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.suma-form-group input:focus,
.suma-form-group select:focus,
.suma-form-group textarea:focus {
    outline: none;
    border-color: #d92121;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.suma-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.suma-form-group select {
    cursor: pointer;
    background-color: white;
}

.suma-form-group select option:disabled {
    color: #999;
}

/* Program Description */
.program-description {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #061953;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    display: none;
}

.program-description.active {
    display: block;
}

.program-description strong {
    color: #061953;
    display: block;
    margin-bottom: 5px;
}

/* Submit Button */
.suma-form-actions {
    margin-top: 40px;
    text-align: center;
}

.suma-submit-btn {
    background: linear-gradient(135deg, #d92121 0%, #061953 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
    position: relative;
    min-width: 200px;
}

.suma-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.5);
    color: #ffd700;
}

.suma-submit-btn:active {
    transform: translateY(0);
}

.suma-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.suma-submit-btn .btn-loader {
    display: inline-block;
}

/* Messages */
#suma-message-container {
    margin-bottom: 30px;
    scroll-margin-top: 24px;
}

.suma-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suma-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #061953;
}

.suma-message.error {
    background: #fff1f2;
    color: #7f1d1d;
    border: 2px solid #ef4444;
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.15);
    font-weight: 600;
}

.suma-message h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.suma-message p {
    margin: 5px 0;
}

.suma-message strong {
    font-weight: 600;
}

/* Confirmation Message Styles */
.confirmation-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.confirmation-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-details .label {
    font-weight: 600;
    color: #d92121;
}

.suma-success-card {
    background: #ffffff;
    border: 1px solid #d9e8df;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(22, 91, 51, 0.12);
    padding: 22px;
    color: #1f2937;
}

.suma-success-banner {
    display: inline-block;
    background: #165b33;
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.suma-success-card h3 {
    margin: 0 0 8px;
    color: #165b33;
    font-size: 26px;
}

.suma-success-note {
    margin: 0 0 14px;
    font-size: 15px;
}

.suma-success-note.subtle {
    color: #4b5563;
    font-size: 14px;
    margin-top: 8px;
}

.suma-success-number-wrap {
    margin: 18px 0 8px;
    padding: 14px;
    background: #f0f9f3;
    border: 1px solid #cfe8d8;
    border-radius: 10px;
    text-align: center;
}

.suma-success-number-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 0.3px;
}

.suma-success-number {
    display: block;
    margin-top: 6px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0f5132;
}

.suma-success-summary {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fcfcfd;
}

.suma-success-summary h4,
.suma-success-summary h5 {
    margin: 0 0 10px;
    color: #061953;
}

.suma-success-summary h5 {
    margin-top: 14px;
}

.suma-success-summary p {
    margin: 6px 0;
}

.suma-success-participants {
    margin: 0;
    padding-left: 18px;
}

.suma-success-participants li {
    margin: 5px 0;
}

.suma-success-empty {
    margin: 0;
    color: #6b7280;
}

.suma-success-reminder,
.suma-success-support {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
}

.suma-success-reminder {
    background: #fffbea;
    border: 1px solid #f6e7b2;
}

.suma-success-support {
    background: #f7f7f9;
    border: 1px solid #e5e7eb;
}

.suma-success-reminder a,
.suma-success-support a {
    color: #165b33;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .suma-registration-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .suma-registration-header {
        padding: 30px 15px;
    }

    .suma-success-card {
        padding: 18px;
    }

    .suma-success-number {
        font-size: 24px;
    }
    
    .suma-registration-header h2 {
        font-size: 24px;
    }
    
    .suma-form {
        padding: 25px 20px;
    }
    
    .suma-form-section h3 {
        font-size: 18px;
    }
    
    .suma-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .suma-submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
}

/* Loading State */
.suma-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Validation States */
.suma-form-group input.error,
.suma-form-group select.error,
.suma-form-group textarea.error {
    border-color: #e74c3c;
}

.suma-form-group .error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #061953;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
    animation: checkmark 0.5s ease;
}

.success-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 36px;
    font-weight: bold;
}

/* Multiple Participants Styling */
.participant-entry {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    position: relative;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.participant-header h4 {
    margin: 0;
    color: #061953;
    font-size: 18px;
}

.remove-participant-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-participant-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    color: #ffd700;
}

#add-participant-container {
    text-align: center;
    margin: 20px 0;
}

.suma-add-participant-btn {
    background: #061953;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(22, 91, 51, 0.3);
}

.suma-add-participant-btn:hover {
    background: #0f4024;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(22, 91, 51, 0.4);
    color: #ffd700;
}

#group_name_container {
    animation: slideDown 0.3s ease;
}

