/* ===== GITEX FORM — Light Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a1a1a;
    --primary-light: #333333;
    --accent: #2563EB;
    --bg-body: #f5f5f5;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text: #111111;
    --text-secondary: #555555;
    --border: #222222;
    --border-light: #d0d0d0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.1);
    --danger: #DC2626;
    --success: #16A34A;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== Progress Bar ===== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-light);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.4s ease;
}

/* ===== Header ===== */
.form-header {
    text-align: center;
    padding: 60px 24px 40px;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
}

.logo {
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 16px;
    padding: 6px 20px;
    border: 2px solid var(--border);
    border-radius: 100px;
}

.form-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-header .subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Wizard Nav ===== */
.wizard-nav {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    padding: 20px 24px 14px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.wizard-progress {
    position: relative;
}

/* ---- Step dots row ---- */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.wizard-steps::-webkit-scrollbar {
    display: none;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: default;
    flex-shrink: 0;
    transition: var(--transition);
}

.wizard-step.completed {
    cursor: pointer;
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    transition: var(--transition);
}

.step-label {
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: var(--transition);
}

.wizard-step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wizard-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.wizard-step.completed .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.wizard-step.completed .step-label {
    color: var(--primary);
}

/* ---- Connectors ---- */
.wizard-connector {
    flex: 1;
    min-width: 12px;
    max-width: 32px;
    height: 2px;
    background: var(--border-light);
    margin-bottom: 14px;
    transition: background 0.4s ease;
    flex-shrink: 1;
}

.wizard-connector.done {
    background: var(--primary);
}

/* ---- Progress bar ---- */
.wizard-bar-track {
    height: 3px;
    background: var(--border-light);
    border-radius: 99px;
    margin-top: 10px;
    overflow: hidden;
}

.wizard-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* ---- Counter ---- */
.wizard-counter {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 6px;
    letter-spacing: 0.3px;
}


/* ===== Form Container ===== */
.form-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ===== Form Sections — Wizard: hidden by default ===== */
.form-section {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    margin-bottom: 28px;
    position: relative;
    display: none;
    transition: var(--transition);
}

.form-section.wizard-active {
    display: block;
    animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.section-number {
    position: absolute;
    top: -16px;
    left: 28px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

/* ===== Form Groups ===== */
.form-group {
    margin-bottom: 20px;
}

label,
.group-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 8px;
}

.hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

/* ===== Inputs & Textareas ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* ===== Two Columns ===== */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===== Radio & Checkbox Groups ===== */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-item,
.checkbox-item {
    position: relative;
}

.radio-item input,
.checkbox-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-item label,
.checkbox-item label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0;
}

.radio-item label:hover,
.checkbox-item label:hover {
    background: #f0f0f0;
    border-color: var(--primary);
}

.radio-item input:checked+label,
.checkbox-item input:checked+label {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ===== Zone Fields ===== */
.zone-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: var(--transition);
}

.zone-field:hover {
    border-color: var(--border);
}

.zone-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.zone-label {
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    min-width: 180px;
    color: var(--text);
}

.zone-field input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
}

/* ===== Conditional Fields ===== */
.conditional-field {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.conditional-field input[type="text"],
.conditional-field textarea {
    border: 1px solid var(--border-light);
}

/* ===== Wizard Footer Buttons ===== */
.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 8px;
    gap: 16px;
}

.btn-prev {
    padding: 12px 28px;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev:hover {
    background: #f0f0f0;
    transform: translateX(-2px);
}

.btn-next {
    margin-left: auto;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-next:hover {
    background: transparent;
    color: var(--primary);
    transform: translateX(2px);
}

/* ===== Submit Button ===== */

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-width: 280px;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .spinner {
    display: block;
}

.spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Validation States ===== */
.input-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.input-valid {
    border-color: var(--success) !important;
}

.group-invalid {
    outline: 2px solid var(--danger);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    z-index: 10000;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.toast.show {
    bottom: 32px;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .two-cols {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 28px 20px;
    }

    .form-header {
        padding: 48px 16px 32px;
    }

    .section-nav-inner {
        gap: 6px;
    }

    .nav-dot {
        width: 30px;
        height: 30px;
        font-size: 0.65rem;
    }

    .radio-group,
    .checkbox-group {
        gap: 8px;
    }

    .zone-field {
        flex-wrap: wrap;
    }

    .zone-label {
        min-width: 100%;
    }
}

/* ===== Success Page ===== */
.success-page {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInSuccess 0.6s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10B981;
    color: white;
    font-size: 40px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-page h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
}

.success-page p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.success-page .btn-submit {
    margin-top: 32px;
    display: inline-block;
    width: auto;
    padding: 14px 40px;
}

@keyframes fadeInSuccess {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Site Footer ===== */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    background: transparent;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.7;
}