/*
 * styles.css - Main stylesheet for KDA Event Registration Page
 *
 * This file contains all the CSS styles for the event registration interface.
 * It includes styles for layout, forms, modals, animations, and responsive design.
 *
 * Organized sections:
 * - Global resets and body styles
 * - Header and logo
 * - Container and layout
 * - Loading animations
 * - Event card components
 * - Form elements and sections
 * - Payment options and summaries
 * - Program modal and tabs
 * - Buttons and interactions
 * - Messages and utilities
 * - Media queries for responsiveness
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}

.logo-container {
    text-align: center;
    padding: 8px 0;
}

.logo-container img {
    max-width: 120px;
    height: auto;
}

.container-main {
    padding: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.event-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-poster {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-description {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.event-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.detail-label {
    color: #124385;
    font-weight: 600;
}

.detail-value {
    color: #333;
}

.detail-icon {
    font-size: 16px;
    color: #124385;
}

.map-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.form-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 20px;
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-out 0.2s both;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #124385;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 0;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.form-control, select {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus, select:focus {
    border-color: #124385;
    box-shadow: 0 0 0 3px rgba(18, 67, 133, 0.1);
}

.required-indicator {
    color: #d32f2f;
}

.payment-option {
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #124385;
    background: #f0f4ff;
}

.payment-option.selected {
    border-color: #124385;
    background: #e8eef7;
}

.payment-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #124385;
    margin-right: 12px;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-description {
    font-weight: 600;
    color: #000;
}

.payment-amount {
    color: #124385;
    font-weight: 700;
    font-size: 16px;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.payment-program-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.payment-session-header {
    font-size: 14px;
    font-weight: 700;
    color: #124385;
    margin-top: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    grid-column: 1 / -1;
}

.payment-summary {
    background: #eef6ff;
    border: 1px solid #b6d4ff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #0d3b70;
}

.payment-summary strong {
    display: block;
    font-size: 14px;
    color: #124385;
}

.program-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #124385;
    color: white;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    transition: background 0.25s ease;
}

.program-button:hover {
    background: #0e3a6d;
}

.program-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.program-modal.hidden {
    display: none;
}

.program-modal-content {
    width: min(100%, 960px);
    max-height: 90vh;
    overflow: hidden;
    background: white;
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.program-modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #124385, #0e3a6d);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-modal-body {
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.program-tab-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.program-tab {
    padding: 10px 14px;
    border-radius: 999px;
    background: #e8eef7;
    color: #124385;
    cursor: pointer;
    transition: background 0.25s ease;
}

.program-tab.active {
    background: #124385;
    color: white;
}

.program-day-container {
    display: none;
}

.program-day-container.active {
    display: block;
}

.program-item {
    padding: 14px 16px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.program-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.program-item-meta {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .payment-grid {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #124385 0%, #0e3a6d 100%);
    border: none;
    color: white;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(18, 67, 133, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #388e3c;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.hidden-field {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .event-title {
        font-size: 20px;
    }

    .sticky-header {
        padding: 10px 0;
    }

    .container-main {
        padding: 12px;
    }

    .event-content {
        padding: 16px;
    }

    .form-card {
        padding: 16px;
        border-radius: 12px;
    }
}
/* Registration type navigation tabs */
.reg-type-nav {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}
.reg-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #dde3f0;
    color: #124385;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.reg-type-btn:hover {
    background: #e8eef7;
    border-color: #124385;
    color: #124385;
    text-decoration: none;
}
.reg-type-btn.active {
    background: #124385;
    border-color: #124385;
    color: #fff;
}
@media (max-width: 576px) {
    .reg-type-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}
