﻿:root {
    --primary: #4556b7;
    --border: #afafaf;
    --text-dark: #111827;
    --text-light: #6b7280;
    --input-bg: #f9fafb;
}
html, body {
    overflow-x: hidden;
}
/* ================= WIZARD ================= */
.wizard {
    display: flex;
    justify-content: space-between;
    margin: 28px 0 36px;
}

.wizard-step {
    flex: 1;
    text-align: center;
    position: relative;
}
.custom_mt {
    margin-top: -3% !important;
}
.custom_header_mt {
    margin-top: -5% !important;
}
.wizard-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.wizard-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    margin: auto;
    position: relative;
    z-index: 1;
}

.wizard-step.active .wizard-circle,
.wizard-step.completed .wizard-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

    .wizard-step.completed .wizard-circle::after {
        content: "✓";
        font-size: 14px;
    }

.wizard-text {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.wizard-step.active .wizard-text,
.wizard-step.completed .wizard-text {
    color: var(--text-dark);
}

/* ================= FORM ================= */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 5;
}

.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    font-size: 14px;
    transition: all 0.2s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--primary);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(69,86,183,0.15);
    }

/* ================= BUTTON ================= */
.primary-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s ease;
}

    .primary-btn:hover {
        opacity: 0.9;
    }

/* ================= ADMIN GRID ================= */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* mobile */
@media (max-width: 640px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* base iti wrapper */
.iti {
    width: 100%;
    position: relative;
}

/* dropdown container */
.iti__country-list {
    min-width: 280px !important; /* readable minimum */
    max-width: 340px !important; /* page se bahar na jaye */
    width: auto !important;
    left: 0 !important;
    right: auto !important;
    box-sizing: border-box;
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden; /* ❌ no horizontal scroll */

    z-index: 9999;
}

/* allow long country names to wrap */
.iti__country {
    white-space: normal !important;
    line-height: 1.3;
}

/* phone wrapper safety */
.phone-wrapper {
    position: relative;
    overflow: visible;
}

/* flag + dial code alignment */
.iti--separate-dial-code .iti__selected-flag {
    background: transparent;
    padding-left: 42px;
}

/* space for icon + flag + dial code */
.phone-input {
    padding-left: 120px !important;
}

/* mobile behaviour */
@media (max-width: 640px) {
    .iti__country-list {
        min-width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
    }
}