/* RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --accent: #0f172a;
    --error: #ef4444;
    --success: #22c55e;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

input, select, button {
    font-family: 'Outfit', sans-serif;
}

/* SPLIT SCREEN CONTAINER */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* LEFT SIDE: INFO PANE */
.info-pane {
    flex: 1.1;
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(248,250,252,0.95) 100%), url('/teen.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    border-right: 1px solid var(--border-color);
    position: relative;
    color: var(--text-primary);
}

.info-logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
    text-transform: uppercase;
}

.info-content {
    max-width: 520px;
    margin-top: auto;
    margin-bottom: auto;
}

.info-badge {
    display: inline-block;
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: rgba(15, 23, 42, 0.03);
    margin-bottom: 20px;
}

.info-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.info-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

/* BENEFIT LIST */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1;
    margin-top: 4px;
}

.benefit-text strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.benefit-text span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    display: block;
}

.info-footer {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* RIGHT SIDE: FORM PANE */
.form-pane {
    flex: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background-color: #ffffff;
}

.wizard-card {
    width: 100%;
    max-width: 520px;
}

/* WIZARD PROGRESS BAR */
.progress-bar-container {
    height: 6px;
    width: 100%;
    background-color: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 12px;
    position: relative;
    margin-top: 24px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #475569 0%, #0f172a 100%);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-percentage {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-motivation {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 35px;
    min-height: 20px;
    transition: opacity 0.3s ease;
}

/* STEP STYLES */
.wizard-slide {
    display: none;
}

.wizard-slide.active {
    display: block;
    animation: slideFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-badge {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.wizard-card h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.slide-desc {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 35px;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 20px;
}

.col-6 {
    flex: 1;
    min-width: 0;
}

label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    color: var(--text-primary);
    border-radius: 0;
    outline: none;
    transition: all 0.2s ease;
}

input:focus, select:focus {
    border-color: var(--accent);
    background-color: #ffffff;
}

.input-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 300;
}

/* PASSWORD STRENGTH INDICATOR */
.pwd-strength-container {
    height: 3px;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.05);
    margin-top: 8px;
    overflow: hidden;
}

.pwd-strength-bar {
    height: 100%;
    width: 0;
    background-color: transparent;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.pwd-weak { width: 33.3%; background-color: var(--error); }
.pwd-medium { width: 66.6%; background-color: #ffaa00; }
.pwd-strong { width: 100%; background-color: var(--success); }

/* DATE OF BIRTH AGE BADGE */
.dob-calc-badge {
    display: inline-block;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--text-primary);
}

.dob-calc-badge.invalid-age {
    border-color: var(--error);
    color: var(--error);
    background-color: rgba(239, 68, 68, 0.05);
}

/* ADDRESS SEARCH COMPLETION */
.address-lookup-group {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid var(--border-color-hover);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    color: var(--text-primary);
}

.address-suggestion-item {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover,
.address-suggestion-item.active {
    background-color: #f1f5f9;
}

/* LUHN SIN VALIDATOR INDICATOR */
.sin-validation-indicator {
    position: absolute;
    right: 16px;
    top: 38px;
    font-size: 12px;
    font-weight: 700;
}

.sin-validation-indicator.valid {
    color: var(--success);
}

.sin-validation-indicator.invalid {
    color: var(--error);
}

/* PEP RADIO OPTIONS */
.pep-group {
    margin-top: 10px;
}

.pep-desc-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 16px;
}

.pep-radio-options {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.radio-card {
    flex: 1;
    display: flex;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    padding: 16px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease;
    color: var(--text-primary);
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
}

.radio-content strong {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.radio-content span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
}

.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--accent);
    background-color: #ffffff;
}

/* CHECKBOX & ALIGNMENT */
.checkbox-align {
    display: flex;
    align-items: center;
    padding-top: 25px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 13px;
    user-select: none;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    font-weight: 300;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--border-color-hover);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    display: inline-block;
    line-height: 1.4;
}

/* REVIEW TABLE */
.review-table {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background-color: #f8fafc;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.review-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.review-row:last-child {
    border-bottom: none;
}

.review-label {
    flex: 1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 500;
}

.review-val {
    flex: 2;
    font-weight: 400;
}

.consent-box {
    margin-bottom: 30px;
}

/* WIZARD ACTIONS BAR */
.wizard-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.wizard-actions .btn {
    flex: 1;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border-color-hover);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.btn:disabled {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

/* SPINNER & LOADING */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.btn-primary:hover .spinner {
    border-top-color: #000000;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ERROR BANNER */
.error-banner {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--error);
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

/* SUCCESS SCREEN */
#step-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 40px;
    color: var(--success);
    margin-bottom: 20px;
    border: 2px solid var(--success);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.success-message {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 40px;
}

.success-details {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.detail-item {
    margin-bottom: 12px;
    font-size: 13px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.detail-item strong {
    font-size: 14px;
    font-family: monospace;
    word-break: break-all;
}

.success-actions {
    margin-top: 30px;
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }
    
    .info-pane {
        padding: 40px;
        min-height: auto;
    }
    
    .info-content {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .form-pane {
        padding: 40px;
        min-height: auto;
    }
}

.red-text {
    color: var(--error) !important;
}

/* INTERACTION & ADDICTION EFFECTS */
.btn-primary.btn-pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(15, 23, 42, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 23, 42, 0);
    }
}

.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

input.input-valid, select.input-valid {
    border-color: var(--success) !important;
    background-color: rgba(34, 197, 94, 0.02) !important;
}

input.input-error {
    border-color: var(--error) !important;
    background-color: rgba(239, 84, 84, 0.02) !important;
}

.radio-card:hover {
    border-color: var(--border-color-hover);
}

.checkbox-container:hover .checkmark {
    border-color: var(--accent);
}

/* PLAN COMPARISON & FEATURES */
.plan-price {
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
    display: block;
    color: var(--text-primary);
}

.plan-features {
    list-style-type: none;
    padding: 0;
    margin: 12px 0 0 0;
    text-align: left;
}

.plan-features li {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.badge-check {
    color: var(--success);
    font-weight: 700;
    margin-right: 6px;
    display: inline-block;
    flex-shrink: 0;
}

.badge-cross {
    color: var(--error);
    font-weight: 700;
    margin-right: 6px;
    display: inline-block;
    flex-shrink: 0;
}

/* COMPARISON LINK TRIGGER */
.comparison-trigger-wrapper {
    text-align: center;
    margin-top: 16px;
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--text-muted);
}

/* DETAILED COMPARISON MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    z-index: 1001;
    border: 1px solid var(--border-color);
    animation: modalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalZoomIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* COMPARISON TABLE */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    margin-bottom: 24px;
}

.comparison-table th, .comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
}

.comparison-table th {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    color: var(--text-muted);
    background-color: #f8fafc;
}

.comparison-table td small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 4px;
}

.col-jeune, .col-plus {
    width: 38%;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}


