/* Myle Worldwide - Driver Sign-In Portal Styles */

:root {
    --myle-primary: #2563eb;
    --myle-secondary: #1e40af;
    --myle-success: #10b981;
    --myle-danger: #ef4444;
    --myle-warning: #f59e0b;
}

/* Base Styles */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--myle-primary) 0%, var(--myle-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* Wizard Container */
.wizard-container { 
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 550px;
    margin: 20px;
    overflow: hidden;
    position: relative;
}

/* Header */
.wizard-header {
    background: linear-gradient(135deg, var(--myle-primary), #3b82f6);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

/* Brand / Logo */
.wizard-header .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.wizard-header .brand .logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 20px;
}

.wizard-header h1 { 
    font-size: 2.2em; 
    margin-bottom: 8px; 
    font-weight: 700;
}

.wizard-header p { 
    opacity: 0.95; 
    font-size: 1.1em;
}

/* Progress Bar */
.progress-bar-container {
    background: rgba(255,255,255,0.2);
    height: 4px;
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    background: rgba(255,255,255,0.8);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Content */
.wizard-content { 
    padding: 40px 30px;
}



.toast { color: #0b1220; background: #f8fafc; padding: 10px 12px; border-radius: 10px; transition: opacity 0.25s ease; }
.toast-error { background: #ef4444; color: #fff; }
.toast-warn { background: #f59e0b; color: #000; }
.toast-info { background: rgba(248,250,252,0.98); color: #0b1220; }

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

.step {
    display: flex;
    flex-direction: column;
}

.step h2 { 
    color: #1f2937; 
    margin-bottom: 25px; 
    font-size: 1.6em;
    font-weight: 600;
    flex-shrink: 0;
}

/* Form Elements */
.form-group { 
    margin-bottom: 25px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: 600; 
    color: #374151; 
}

.form-control { 
    width: 100%; 
    padding: 16px 20px; 
    border: 2px solid #e5e7eb; 
    border-radius: 12px; 
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--myle-primary); 
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
}

/* Buttons */
.btn { 
    background: var(--myle-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 8px;
}

.btn:hover { 
    background: var(--myle-secondary); 
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn:disabled { 
    background: #9ca3af; 
    cursor: not-allowed; 
    transform: none;
    box-shadow: none;
}

.btn-secondary { 
    background: #6b7280; 
}

.btn-secondary:hover { 
    background: #4b5563; 
}

.btn-success { 
    background: var(--myle-success); 
}

.btn-success:hover { 
    background: #059669; 
}

.btn-danger {
    background: var(--myle-danger);
}

.btn-danger:hover {
    background: #dc2626;
}

.button-group { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

/* File Upload */
.file-input { 
    display: none; 
}

.file-label {
    display: block;
    background: #f8fafc;
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--myle-primary);
    background: #f0f9ff;
}

.preview-image { 
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Progress Indicators */
.progress { 
    background: #e5e7eb;
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    background: linear-gradient(90deg, var(--myle-primary), #3b82f6);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

/* Utility Classes */
.text-center { 
    text-align: center; 
}

.text-danger {
    color: var(--myle-danger);
}

/* Camera Modal Styles */
.camera-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.camera-content {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.camera-video-container {
    position: relative;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.camera-video {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    background: #000;
    transition: opacity 0.3s ease;
    object-fit: cover;
    height: 100%;
}

.camera-overlay {
    border-radius: 16px;
}

.camera-video-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.camera-buttons {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    min-height: 60px;
}

.camera-buttons .btn {
    flex: 1;
    min-width: 100px;
    margin: 2px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.camera-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.scan-helper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border: 1px dashed #94a3b8;
    border-radius: 16px;
    background: #f8fafc;
    margin: 12px 0 0;
}

.scan-helper .scan-card {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    background: linear-gradient(140deg, #0f172a, #2563eb);
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0f2fe;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.scan-helper .scan-card::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 18px;
}

.scan-helper .scan-details {
    flex: 1;
    font-size: 0.95rem;
    color: #0f172a;
}

.scan-helper .scan-details strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

/* Camera Preview Styles */
#camPreviewImg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 15;
    background: white;
    padding: 4px;
    border: 3px solid var(--myle-success);
    animation: confirmPulse 2s infinite;
    display: none;
}

@keyframes confirmPulse {
    0%, 100% { 
        border-color: var(--myle-success); 
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    }
    50% { 
        border-color: #059669; 
        box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .wizard-container { 
        margin: 10px; 
    }

    .wizard-content { 
        padding: 25px 20px; 
    }

    .wizard-header { 
        padding: 30px 20px; 
    }

    .button-group { 
        flex-direction: column; 
    }

    .button-group .btn { 
        width: 100%; 
        margin: 8px 0; 
    }

    .camera-content {
        padding: 15px;
        margin: 10px;
    }

    .camera-buttons .btn {
        padding: 16px 12px;
        font-size: 13px;
        min-width: 90px;
    }

    .camera-video {
        max-width: 100%;
    }

    /* Make primary buttons larger on mobile for better touch targets */
    .btn { padding: 18px 20px; font-size: 16px; border-radius: 12px; }
}
.nysftd-id-insert { max-width: 960px; margin: 20px auto; padding: 20px; border-radius: 10px; background:#fff; box-shadow:0 6px 20px rgba(0,0,0,0.08); }
.nysftd-card { display:flex; gap:20px; align-items:center; }
.nysftd-id-img { width:260px; height:auto; border-radius:6px; object-fit:cover; box-shadow:0 4px 12px rgba(0,0,0,0.06); }
.nysftd-content h2 { margin:0 0 10px; font-size:1.3rem; color:#0b2b45; }
.nysftd-content p { margin:6px 0 12px; color:#333; }
.nysftd-benefits { margin:8px 0 14px; padding-left:18px; }
.nysftd-benefits li { margin-bottom:8px; }
.nysftd-cta-row { display:flex; gap:10px; margin-top:10px; }
.btn-primary { background:#0b6bff; color:#fff; padding:10px 14px; border-radius:6px; text-decoration:none; font-weight:600; }
@media (max-width:760px) { .nysftd-card { flex-direction:column; text-align:center } .nysftd-id-img{ width:80%; } }

/* Modern Review List Styles */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    min-height: 40px;
}

.review-item:hover {
    background: linear-gradient(145deg, #f0f4f8 0%, #e6ebf2 100%);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}

.review-label {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
    letter-spacing: 0.2px;
    min-width: 80px;
    white-space: nowrap;
}

.review-value {
    color: #111827;
    font-weight: 500;
    font-size: 13px;
    word-break: break-word;
    white-space: normal;
    overflow: visible;
    min-width: 120px;
    max-width: 100%;
    flex: 2;
}

.btn-sm {
    padding: clamp(6px, 1vw, 10px) clamp(10px, 1.5vw, 14px) !important;
    font-size: clamp(11px, 1.8vw, 12px) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.review-edit {
    background: none;
    color: #2563eb;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    padding: 4px 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.review-edit:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.review-line {
    display: none;
}

.review-actions {
    display: none;
}

/* Tablet: Adjusted layout */
@media (max-width: 768px) {
    .review-item {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
    }

    .review-label {
        font-size: 12px;
        color: #475569;
        min-width: 70px;
    }

    .review-value {
        font-size: 13px;
        max-width: 60%;
    }

    .review-edit {
        align-self: flex-end;
    }
}

/* Mobile: Stack vertically */
@media (max-width: 480px) {
    .review-list {
        gap: 8px;
        margin-bottom: 20px;
    }

    .review-item {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .review-label {
        font-size: 11px;
    }

    .review-value {
        font-size: 14px;
        padding: 6px 0;
    }

    .review-edit {
        width: 100%;
        text-align: center;
    }
}
