*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: #050505;
    color: #fff;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 100% 80% at 50% 0%, transparent 30%, rgba(0, 0, 0, 0.5) 80%),
                radial-gradient(ellipse 100% 80% at 50% 100%, transparent 30%, rgba(0, 0, 0, 0.5) 80%),
                radial-gradient(ellipse 80% 100% at 0% 50%, transparent 25%, rgba(0, 0, 0, 0.4) 70%),
                radial-gradient(ellipse 80% 100% at 100% 50%, transparent 25%, rgba(0, 0, 0, 0.4) 70%);
}

/* Page with background glow */
.page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    background: #050505;
    overflow-x: hidden;
    overflow-y: visible;
    display: flex;
    justify-content: center;
}

.page::before {
    content: "";
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 45, 45, 0.9) 0%, rgba(180, 20, 20, 0.5) 40%, rgba(80, 5, 5, 0.2) 70%, transparent 100%),
        radial-gradient(ellipse 60% 40% at 40% 10%, rgba(255, 60, 60, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 60% 5%, rgba(255, 35, 35, 0.6) 0%, transparent 50%);
    filter: blur(80px);
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
}

.page::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -120px;
    width: 800px;
    height: 500px;
    background:
        radial-gradient(ellipse 80% 60% at 70% 70%, rgba(255, 80, 80, 0.5) 0%, rgba(200, 40, 40, 0.25) 45%, rgba(100, 20, 20, 0.1) 70%, transparent 100%),
        radial-gradient(ellipse 60% 45% at 80% 60%, rgba(255, 100, 100, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 35% at 65% 80%, rgba(255, 90, 90, 0.3) 0%, transparent 50%);
    filter: blur(100px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Container - fluid responsive */
.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 40px 16px 40px;
}

/* Content centered */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Logo responsive */
.logo {
    width: clamp(180px, 28vw, 320px);
    height: auto;
    margin: 6px auto 12px;
    position: relative;
    z-index: 10;
}

/* Form base */
.form {
    width: 100%;
    max-width: 700px;
    overflow: hidden;
}

/* Normal form rows */
.form-row {
    width: 100%;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 22px;
    align-items: center;
    margin-bottom: 12px;
}

.label {
    font-size: 12px;
    font-weight: 600;
    color: #bdbdbd;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-align: left;
}

/* AGE + GENDER row */
.form-row.row-split {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
    column-gap: 22px;
    align-items: center;
    margin-bottom: 12px;
}


/* Force expansion */
.form-row.row-split #age,
.form-row.row-split #gender {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    margin: 0 !important;
}

/* Normalize select */
.form-row.row-split select#gender {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(0, 0, 0, 0.35);
    background-image: none;
    line-height: 1.2;
}

.form-row.row-split * {
    min-height: 0;
}

/* Form inputs */
.form-input,
select.form-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 0 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.form-input:focus {
    border-color: rgba(255, 0, 0, 0.65);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 0, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

select.form-input option {
    background: #1a1a1a;
    color: #fff;
}

input[type="date"].form-input {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    opacity: 0.6;
    cursor: pointer;
}

/* Actions / Buttons */
.actions {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.actions .btn-primary {
    width: clamp(160px, 28vw, 220px);
    height: 46px;
    padding: 0 28px;
    background: linear-gradient(180deg, #7a0000 0%, #ff1c1c 100%);
    border-radius: 999px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 28, 28, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 28, 28, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    min-height: 18px;
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .form-row.row-split {
        grid-template-columns: max-content minmax(0, 1fr);
        row-gap: 14px;
    }
}

/* Mobile breakpoint */
@media (max-width: 640px) {
    .container {
        width: 94vw;
        padding: 24px 12px 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .label {
        font-size: 11px;
        text-align: left;
    }

    .form-row.row-split {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .actions {
        flex-direction: column;
        gap: 12px;
    }

    .actions .btn-primary {
        width: 100%;
        max-width: 420px;
    }

    .logo {
        width: clamp(120px, 40vw, 180px);
        margin-top: 8px;
    }

    .page::before {
        top: -80px;
        right: -30px;
        width: 600px;
        height: 400px;
        filter: blur(60px);
    }

    .page::after {
        width: 500px;
        height: 350px;
        bottom: -40px;
        right: -50px;
        filter: blur(50px);
    }
}

/* Helper Wrap - centers and shifts badge */
.helper-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
}

.helper-wrap .info-badge {
    margin-top: 0;
    transform: translateX(30px);
}

/* Info Badge */
.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 25px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.08);
}

.info-dot {
    width: 6px;
    height: 6px;
    background: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 50, 50, 0.8);
    flex-shrink: 0;
}

.info-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-align: center;
}

/* Mobile responsive for info badge */
@media (max-width: 768px) {
    .helper-wrap {
        margin-top: 14px;
    }
    
    .helper-wrap .info-badge {
        transform: translateX(0);
    }
    
    .info-badge {
        margin-top: 0;
        padding: 9px 16px;
        border-radius: 20px;
    }
    
    .info-text {
        font-size: 12px;
        letter-spacing: 0.3px;
    }
}
