@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand: #2563a8;          /* yumshoq ko'k */
    --brand-dark: #1c4d85;
    --brand-soft: #eaf2fb;     /* juda yumshoq fon */
    --accent: #34c759;
    --ink: #1f2d3d;
    --muted: #6b7c8f;
    --line: #e4ebf2;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(31, 45, 61, .06);
}

html, body { height: 100%; }

body {
    font-family: 'Inter', sans-serif;
    background: #f6f9fc;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

/* ---------- Navbar ---------- */
.site-navbar {
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}
.site-navbar .navbar-brand,
.site-navbar .nav-link { color: var(--ink) !important; }
.site-navbar .brand-text { font-weight: 700; font-size: 1rem; }
.site-navbar .nav-link { font-weight: 500; }
.site-navbar .nav-link:hover { color: var(--brand) !important; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--brand) 0%, #3b82d6 100%);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(37, 99, 168, .25);
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.hero-badge {
    display: inline-block; margin-bottom: 1rem;
    background: rgba(255, 255, 255, .18); color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    padding: .35rem 1rem; border-radius: 30px;
    font-size: .8rem; font-weight: 600; letter-spacing: .3px;
}

/* intl-tel-input full width inside form */
.iti { width: 100%; }

/* ---------- Generic ---------- */
.page-title { color: var(--brand-dark); font-weight: 700; }
.section-header { background: var(--brand); color: #fff; font-weight: 600; }

.card, .soft-card { border-radius: var(--radius); }
.soft-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.icon-circle {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}
.success-check {
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 2.6rem;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Form controls (soft) ---------- */
.form-label { font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.form-control, .form-select {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .6rem .9rem;
    background: #fcfdff;
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 168, .12);
    background: #fff;
}
.form-text { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
}
.btn-success { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); }

/* ---------- Wizard progress ---------- */
.wizard-progress {
    list-style: none; display: flex; padding: 0; margin: 0 0 2rem;
    counter-reset: step;
}
.wizard-progress li {
    flex: 1; text-align: center; position: relative; color: var(--muted);
    font-size: .82rem; font-weight: 500;
}
.wizard-progress li .dot {
    width: 38px; height: 38px; border-radius: 50%;
    background: #fff; border: 2px solid var(--line); color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .4rem; font-weight: 700; position: relative; z-index: 2;
    transition: all .25s;
}
.wizard-progress li::before {
    content: ""; position: absolute; top: 19px; left: -50%; width: 100%;
    height: 2px; background: var(--line); z-index: 1;
}
.wizard-progress li:first-child::before { display: none; }
.wizard-progress li.active { color: var(--brand-dark); }
.wizard-progress li.active .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,168,.12); }
.wizard-progress li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.wizard-progress li.done::before { background: var(--brand); }

/* ---------- Wizard steps ---------- */
.wizard-step { display: none; animation: fadeIn .3s ease; }
.wizard-step.active { display: block; }
.step-heading { font-weight: 700; color: var(--brand-dark); margin-bottom: 1.25rem; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Upload rows ---------- */
.upload-row {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.upload-row:last-child { border-bottom: 0; }
.upload-example { position: relative; flex-shrink: 0; width: 110px; text-align: center; }
.upload-example img {
    width: 110px; height: auto; border-radius: 12px;
    box-shadow: var(--shadow); background: #fff;
}
.example-tag {
    display: inline-block; margin-top: .4rem; font-size: .7rem; font-weight: 600;
    color: var(--brand); background: var(--brand-soft); padding: .15rem .6rem; border-radius: 20px;
}
.upload-body { flex: 1; }
.upload-body input[type="file"] {
    position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
.upload-drop {
    display: flex; align-items: center; gap: .6rem; cursor: pointer;
    border: 1.5px dashed var(--brand); border-radius: 12px;
    padding: .8rem 1rem; color: var(--brand); background: var(--brand-soft);
    transition: background .15s;
}
.upload-drop:hover { background: #dbe9f9; }
.upload-drop i { font-size: 1.3rem; }
.upload-drop .file-name { margin-left: auto; color: var(--ink); font-weight: 500; font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: #fff; border-top: 1px solid var(--line);
    color: var(--muted); flex-shrink: 0;
}

@media (max-width: 576px) {
    .soft-card { padding: 1.25rem; }
    .wizard-progress li em { display: none; }
    .upload-row { flex-direction: column; align-items: center; text-align: center; }
}
