@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --bg-color: #f4f7fa;
    --card-bg: #ffffff;
    --text-color: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
}

.wizard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.wizard-sidebar {
    width: 320px;
    background-color: #fff;
    border-right: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.brand-container {
    margin-bottom: 2rem;
}

.brand-container img {
    max-width: 200px;
}

.back-to-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 0.2s;
}

.back-to-home:hover {
    color: var(--primary-color);
}

.wizard-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 35px;
    width: 2px;
    height: calc(100% - 15px);
    background-color: var(--border-color);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.wizard-step.active .step-number {
    background-color: var(--primary-color);
    color: #fff;
}

.wizard-step.completed .step-number {
    background-color: var(--success-color);
    color: #fff;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.wizard-step.active .step-label {
    color: var(--primary-color);
}

/* Content */
.wizard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    overflow-y: auto;
}

.wizard-card {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem 2.5rem;
    background-color: #fafbfc;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    color: var(--text-color);
}

.card-body {
    padding: 2.5rem;
}

.step-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
}

.step-title-row h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    color: var(--text-color);
    background-color: #fff;
    border-color: #a5b4fc;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group-phone {
    display: flex;
    gap: 0.5rem;
}

.phone-prefix {
    width: 120px;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
}

/* Password Requirements */
.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-color);
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.requirement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.requirement-item.valid {
    color: var(--success-color);
}

.requirement-item.valid .requirement-dot {
    background-color: var(--success-color);
}

/* Wizard Buttons */
.wizard-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
    width: 100%;
    max-width: 800px;
}

.btn-next {
    padding: 0.8rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: #8fbdfc;
    /* Light blue like in image */
    color: #fff;
    border: none;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-next:hover {
    background-color: #7ab0fc;
}

.btn-next:disabled {
    background-color: #cfe3ff;
    cursor: not-allowed;
}

.btn-prev {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    margin-right: 1rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-prev:hover {
    background-color: #f8fafc;
    color: var(--text-color);
}

/* Drop Zone Styles */
.drop-zone {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #f8fafc;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    padding: 1rem;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.drop-zone .zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    /* Make inner content non-clickable so click hits parent */
}

.drop-zone i {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.drop-zone:hover i {
    color: var(--primary-color);
}

.drop-zone .zone-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.drop-zone .zone-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.drop-zone img.preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #fff;
    padding: 5px;
    pointer-events: none;
    /* Allows clicking through the image to the zone */
}

.drop-zone-wrapper {
    margin-bottom: 1.5rem;
}

.drop-zone-header {
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Centered Selfie Zone */
.selfie-wrapper {
    max-width: 400px;
    margin: 2rem auto 0;
}

/* Instruction Box */
.instruction-box {
    background-color: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
}

.instruction-icon {
    width: 48px;
    height: 48px;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.instruction-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #0c4a6e;
}

/* Utility */
.hidden {
    display: none !important;
}

@media (max-width: 991px) {
    .wizard-sidebar {
        display: none;
    }
}