/* ==========================================================
   COGNOS 2K26 - Components & Modals (Clean Light Theme)
   ========================================================== */

/* ----------------------------------------------------------
   1. Modal Overlays & Frames
   ---------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    transition: transform 0.2s ease-out;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-badge {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.modal-close-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

.modal-body {
    padding: 24px;
}

/* ----------------------------------------------------------
   2. Event Details Modal Content
   ---------------------------------------------------------- */
.event-modal-about {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #1d4ed8;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.detail-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
}

.detail-block-title {
    font-size: 13px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    font-weight: 700;
}

.detail-block-value {
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

/* Prizes Row */
.prizes-container {
    background: #fef2f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.prizes-title {
    color: #9f1239;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.prizes-list {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    flex-wrap: wrap;
}

.prize-pill {
    background: #ffffff;
    border: 1px solid #fda4af;
    border-radius: 6px;
    padding: 8px 16px;
    text-align: center;
    min-width: 120px;
}

.prize-rank {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.prize-amount {
    font-size: 18px;
    font-weight: 800;
    color: #e11d48;
    margin-top: 2px;
}

/* Domains List (Razzle Review) */
.domains-wrap {
    margin-bottom: 20px;
}

.domains-title {
    font-size: 13px;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.domain-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Rules List */
.rules-container {
    margin-bottom: 20px;
}

.rules-title {
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.rule-number {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}

/* Coordinators Section inside Modal */
.modal-coordinators {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
}

.modal-coord-title {
    font-size: 13px;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-footer-cta {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 14px 24px;
    display: flex;
    justify-content: flex-end;
}

/* ----------------------------------------------------------
   3. Multi-Event Registration Form
   ---------------------------------------------------------- */
.reg-form-wrap {
    max-width: 680px;
}

.form-group-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 18px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.form-group-title:first-child {
    margin-top: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 12px;
}

.vishleshana-participant-box {
    margin: 16px 0 22px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
    border: 1px solid #fdba74;
    border-left: 4px solid #f97316;
    border-radius: 10px;
}

.vishleshana-participant-box[hidden] {
    display: none;
}

.vishleshana-participant-title {
    color: #c2410c;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 10px;
}

.participant-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 8px 0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.participant-check input {
    accent-color: #e11d48;
}

.vishleshana-participant-box small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.form-field {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-label span.req {
    color: #e11d48;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 16px;
    outline: none;
    transition: all 0.15s ease;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input.uppercase {
    text-transform: uppercase;
}

/* Events Multi-Selection Checkbox Group */
.events-select-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
}

.event-checkbox-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.event-checkbox-card:last-child {
    margin-bottom: 0;
}

.event-checkbox-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.event-checkbox-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
}

.cb-label-side {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.cb-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    cursor: pointer;
}

.cb-sub {
    font-size: 14px;
    color: #64748b;
}

.cb-view-link {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    padding: 3px 8px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
}

.cb-view-link:hover {
    background: #dbeafe;
}

/* Teammate Toggle Switch */
.teammate-toggle-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: #0f172a;
}

.toggle-info p {
    font-size: 14px;
    color: #64748b;
}

/* Custom switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .2s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #2563eb;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Expandable Teammate Box */
.teammate-box {
    display: none;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeIn 0.2s ease;
}

.teammate-box.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* File Upload Zone */
.file-upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s ease;
}

.file-upload-zone:hover, .file-upload-zone.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-icon {
    font-size: 26px;
    margin-bottom: 6px;
    color: #64748b;
}

.upload-text {
    font-size: 15.5px;
    font-weight: 600;
    color: #1e293b;
}

.upload-sub {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.selected-file-badge {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 12px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Form Submit Button */
.btn-submit-reg {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.btn-submit-reg:hover:not(:disabled) {
    background: #1d4ed8;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.btn-submit-reg:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ----------------------------------------------------------
   4. Success / Confirmation Modal
   ---------------------------------------------------------- */
.success-card {
    text-align: center;
    padding: 24px 20px;
}

.success-icon-wrap {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    background: #dcfce7;
    border: 2px solid #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #16a34a;
}

.success-title {
    font-size: 24px;
    margin-bottom: 6px;
    color: #0f172a;
}

.success-subtitle {
    font-size: 14px;
    color: #475569;
    max-width: 480px;
    margin: 0 auto 20px;
}

.reg-id-display-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 14px;
    max-width: 320px;
    margin: 0 auto 20px;
}

.reg-id-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

.reg-id-number {
    font-family: monospace;
    font-size: 26px;
    font-weight: 800;
    color: #1d4ed8;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

.btn-join-whatsapp {
    background: #16a34a;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.15s ease;
}

.btn-join-whatsapp:hover {
    background: #15803d;
}

.email-notice-box {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    color: #475569;
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(4px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3010;
}

.lightbox-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.08);
}

.lightbox-close-btn:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .lightbox-close-btn {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 26px;
    }
}

/* Spinner Animation */
.spin-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
