﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /*font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;*/
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}
/*
.banner {
    width: 100%;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6f 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(26, 11, 46, 0.85) 0%, rgba(45, 27, 78, 0.85) 50%, rgba(74, 44, 111, 0.85) 100%);
    }

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}*/

.logo {
    text-align: center;
    margin-bottom: 20px;
}

    .logo h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 5px;
    }

.event-details {
    text-align: center;
    margin-bottom: 20px;
}

    .event-details h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .event-details p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

.organizers {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 15px;
}

.directive {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.content-section {
    background: #fff;
    color: #000;
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 15px;
    border: none;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 1rem;
    transition: background 0.3s;
}

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus {
        outline: none;
        background: #e8e8e8;
    }

.help-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-icon {
    color: #25D366;
    font-size: 1.1rem;
}

.phone-input {
    display: flex;
    gap: 10px;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.flag {
    font-size: 1.5rem;
}

.phone-input input {
    flex: 1;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
}

input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-top: 2px;
    accent-color: #5b21b6;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
}

    .checkbox-label a {
        color: #5b21b6;
        text-decoration: none;
    }

        .checkbox-label a:hover {
            text-decoration: underline;
        }

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #5b21b6;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

    .submit-btn:hover {
        background: #4c1d95;
    }

.camera-icon {
    font-size: 1.3rem;
}

.disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* ══════════════════════════════════════════
   CAMERA MODAL – full-screen camera-app style
   ══════════════════════════════════════════ */

.camera-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    overflow: hidden;
}

.camera-modal.active {
    display: block;
}

/* ── Video fills the entire modal ── */
.camera-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px; /* Constrain max width for PC so it doesn't stretch weirdly */
    background: #000;
    overflow: hidden;
}

#cameraVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}

/* ── Face oval guide – centred in video ── */
.face-oval-guide {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(70%, 250px);
    aspect-ratio: 3 / 4;
    border: 3.5px dashed rgba(239,68,68,0.8);
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    animation: oval-pulse 2.5s ease-in-out infinite;
}

@keyframes oval-pulse {
    0%, 100% { border-color: rgba(239,68,68,0.55); box-shadow: none; }
    50%       { border-color: rgba(239,68,68,1);    box-shadow: 0 0 18px rgba(239,68,68,0.45); }
}

/* ── Top header bar overlaid on video ── */
.camera-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: env(safe-area-inset-top, 12px) 16px 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
}

.camera-header-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* ── Instruction + feedback – overlaid at bottom of video, ABOVE controls ── */
.camera-info-overlay {
    position: relative;
    /* Instead of absolute positioning via bottom px, we now let it flow naturally above the buttons in the flex container */
    width: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    pointer-events: none;
    margin-bottom: 20px; /* Space between info overlay and buttons */
}

/* Instructions pill */
.camera-instruction {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 99px;
    padding: 8px 20px;
    max-width: 320px;
    width: 100%;
    letter-spacing: 0.01em;
}

/* Warning / success feedback */
.liveness-feedback {
    max-width: 320px;
    width: 100%;
    background: rgba(239,68,68,0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(239,68,68,0.6);
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    display: none;
    pointer-events: none;
}

.liveness-feedback.success {
    background: rgba(5,150,105,0.75);
    border-color: rgba(16,185,129,0.6);
}

/* Loading indicator overlaid on video */
#loadingIndicator {
    /* Styles are handled inline on the element in HTML for absolute horizontal/vertical centering now */
    display: none;
}

/* ── Bottom controls bar – floats over the video ── */
.camera-bottom-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 16px 24px calc(env(safe-area-inset-bottom, 0px) + 20px);
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Ensures content stays near bottom if height allows */
    gap: 12px;
}

.camera-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 400px; /* Slightly wider for PC buttons */
}

.camera-btn {
    border: none;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    padding: 13px 22px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.cancel-btn {
    background: rgba(239,68,68,0.25);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.4);
    flex: 1;
}
.cancel-btn:hover  { background: rgba(239,68,68,0.4); }
.cancel-btn:active { transform: scale(0.97); }

.capture-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 4px solid #ef4444;
    padding: 0;
    box-shadow: 0 0 0 6px rgba(239,68,68,0.25), 0 6px 20px rgba(0,0,0,0.6);
    flex-shrink: 0;
}
.capture-btn:hover  { transform: scale(1.06); box-shadow: 0 0 0 9px rgba(239,68,68,0.3), 0 8px 24px rgba(0,0,0,0.6); }
.capture-btn:active { transform: scale(0.95); }

.retake-btn {
    background: rgba(245,158,11,0.25);
    color: #fde68a;
    border: 1px solid rgba(245,158,11,0.4);
    flex: 1;
}
.retake-btn:hover  { background: rgba(245,158,11,0.4); }
.retake-btn:active { transform: scale(0.97); }

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 400px) {
    .face-oval-guide   { width: min(75%, 220px); }
    .capture-btn       { width: 62px; height: 62px; font-size: 1.4rem; }
    .camera-instruction{ font-size: 0.8rem; padding: 7px 14px; }
}

@media (min-width: 600px) {
    .face-oval-guide     { width: min(55%, 380px); }
    .capture-btn         { width: 78px; height: 78px; font-size: 1.8rem; }
    .camera-controls     { max-width: 380px; }
}

.camera-preview {
    display: none;
}

    .camera-preview.active {
        display: block;
    }

    .camera-preview img {
        width: 100%;
        border-radius: 15px;
    }

.camera-instruction {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
}

.checkbox-group.error .error-message {
    display: block;
}

.checkbox-group.error input[type="checkbox"] {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

#selfie-data {
    display: none;
}

@media (max-width: 768px) {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    display: none;
}

.checkbox-group.error .error-message {
    display: block;
}

.checkbox-group.error input[type="checkbox"] {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .banner {
        padding: 15px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .event-details h2 {
        font-size: 1.3rem;
    }

    .event-details p {
        font-size: 0.95rem;
    }

    .container {
        padding: 15px;
    }

    .content-section {
        padding: 30px 20px;
    }

    h3 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .phone-input {
        flex-direction: column;
    }

    .country-code {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .event-details h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}


.banner {
    position: relative;
    width: 100%;
    height:200px;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slides {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .banner-slide.active {
        opacity: 1;
    }

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    margin: 20px;
}

.logo h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.event-details h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.event-details p {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.organizers p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.directive p {
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-top: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.banner-dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .banner-dot:hover {
        background-color: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }

    .banner-dot.active {
        background-color: white;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .banner {
        min-height: 500px;
    }

    .banner-content {
        padding: 30px 15px;
        width: 95%;
    }

    .logo h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .event-details h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .event-details p {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .organizers p {
        font-size: 0.95rem;
        margin-top: 8px;
    }

    .directive p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .banner-dots {
        bottom: 10px;
    }

    .banner-dot {
        height: 10px;
        width: 10px;
    }
}

@media (max-width: 480px) {
    .banner {
        min-height: 550px;
    }

    .banner-content {
        padding: 20px 10px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .event-details h2 {
        font-size: 1.1rem;
    }

    .event-details p {
        font-size: 0.9rem;
    }

    .organizers p {
        font-size: 0.85rem;
    }

    .directive p {
        font-size: 0.85rem;
    }
}