/* ═══ FORMS PAGE — v4 ═══ */

.glass-panel {
    background: rgba(11, 12, 21, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Burger Animation */
#btn-menu {
    position: relative;
    width: 22px;
    height: 16px;
    flex-shrink: 0;
}

#btn-menu span {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s ease;
}

#line-1 {
    transform: translateY(-6px);
}

#line-2 {
    transform: translateY(0);
}

#line-3 {
    transform: translateY(6px);
}

#btn-menu.open #line-1 {
    transform: rotate(45deg);
}

#btn-menu.open #line-2 {
    transform: scaleX(0);
    opacity: 0;
}

#btn-menu.open #line-3 {
    transform: rotate(-45deg);
}

/* Language Switcher */
.lang-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.lang-item--active {
    color: #fff;
    background: rgba(59, 130, 246, 0.15);
}

.lang-item--active:hover {
    background: rgba(59, 130, 246, 0.25);
}

@media (min-width: 1024px) {
    #mega-footer {
        flex-shrink: 0;
    }
}

@media (max-width: 1023px) {
    #mega-footer {
        flex-shrink: 1;
    }

    .mega-footer-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .mega-footer-left {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }

    .mega-footer-left a {
        border-left: none !important;
        padding-left: 0 !important;
    }
}

/* Pricing tooltips */
.pricing-tip {
    position: relative;
    display: inline;
    vertical-align: middle;
}

.pricing-tip .tip-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.pricing-tip .tip-icon:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: rgba(59, 130, 246, 0.7);
}

.pricing-tip .tip-box {
    position: absolute;
    bottom: calc(100% + 8px);
    left: auto;
    right: -10px;
    transform: none;
    width: 240px;
    padding: 10px 12px;
    background: #161b28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #9ca3af;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pricing-tip:hover .tip-box {
    opacity: 1;
    pointer-events: auto;
}


/* ═══════════════════════════════════════════════ */
/*  SLIDE-IN FORM MODAL                           */
/* ═══════════════════════════════════════════════ */

.form-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.45s ease;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

.form-modal-overlay.active {
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.form-modal-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, #0f1220 0%, #0b0c15 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.form-modal-panel.active {
    transform: translateX(0);
}

.form-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 10;
}

.form-modal-close:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: rotate(90deg);
}

/* Modal tariff badge */
.modal-tariff-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-tariff-badge.pro {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.modal-tariff-badge.vip {
    background: rgba(200, 200, 200, 0.08);
    color: #d4d4d4;
    border: 1px solid rgba(200, 200, 200, 0.2);
}


/* ═══════════════════════════════════════════════ */
/*  FORM FIELD SPACING (not in compiled Tailwind) */
/* ═══════════════════════════════════════════════ */

.form-fields>.form-group+.form-group,
.form-fields>.form-row+.form-row,
.form-fields>.form-row+.form-group,
.form-fields>.form-group+.form-row,
.form-fields>.form-group+.form-divider,
.form-fields>.form-divider+.form-group,
.form-fields>.form-group+.form-consent,
.form-fields>.form-divider+.form-consent {
    margin-top: 1.5rem;
}


/* ═══════════════════════════════════════════════ */
/*  FORM FIELDS                                    */
/* ═══════════════════════════════════════════════ */

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.form-field {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
    -webkit-appearance: none;
}

.form-field::placeholder {
    color: rgba(255, 255, 255, 0.18);
}

.form-field:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.form-field:focus {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

/* Validation: error state — matches auth-modal pattern */
.form-field.err {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-hint {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #ef4444;
    display: none;
    text-align: right;
}

.form-hint.vis {
    display: block;
    animation: hintIn 0.25s ease;
}

@keyframes hintIn {
    from {
        opacity: 0;
        transform: translateX(4px);
    }

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

.form-checkbox.chk-err {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Select */
.form-field-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.3)' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-field-select option {
    background: #161b28;
    color: #fff;
}

/* Textarea */
textarea.form-field {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

/* Phone with prefix */
.phone-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.phone-wrapper .form-field {
    border-radius: 0 0.75rem 0.75rem 0;
}

.phone-wrapper:focus-within .phone-prefix {
    border-color: rgba(59, 130, 246, 0.5);
}

/* File upload */
.file-drop-zone {
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.015);
}

.file-drop-zone:hover {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.03);
}

.file-drop-zone.dragover {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.file-drop-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(59, 130, 246, 0.5);
    font-size: 1rem;
    transition: all 0.3s;
}

.file-drop-zone:hover .file-drop-icon {
    background: rgba(59, 130, 246, 0.12);
    color: rgba(59, 130, 246, 0.7);
    transform: translateY(-1px);
}

/* Avatar upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.avatar-upload:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.03);
}

.avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
}

.avatar-preview.loaded {
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.avatar-preview.loaded i {
    display: none;
}

.avatar-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.avatar-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 2px;
}

.avatar-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-remove.vis {
    display: flex;
}

.avatar-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Radio group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s;
}

.radio-option:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.radio-option.selected {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.06);
}

.radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.radio-option.selected .radio-dot {
    border-color: #3b82f6;
}

.radio-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.radio-option.selected .radio-dot-inner {
    transform: scale(1);
}

.radio-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.radio-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

.radio-option.selected .radio-label {
    color: #fff;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s;
}

.checkbox-option:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.checkbox-option.selected {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.06);
}

/* Toggle switch */
.form-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.25s;
    flex-shrink: 0;
    appearance: none;
    border: none;
}

.form-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-toggle:checked {
    background: #2563eb;
}

.form-toggle:checked::after {
    transform: translateX(20px);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.toggle-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.toggle-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 2px;
}

/* Date field icon */
.date-wrapper {
    position: relative;
}

.date-wrapper .form-field {
    padding-right: 2.75rem;
}

.date-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    font-size: 0.8rem;
}

/* Number stepper */
.number-wrapper {
    display: flex;
    align-items: stretch;
}

.number-btn {
    width: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.number-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.number-btn:first-child {
    border-radius: 0.75rem 0 0 0.75rem;
    border-right: none;
}

.number-btn:last-child {
    border-radius: 0 0.75rem 0.75rem 0;
    border-left: none;
}

.number-wrapper .form-field {
    border-radius: 0;
    text-align: center;
    -moz-appearance: textfield;
}

.number-wrapper .form-field::-webkit-inner-spin-button,
.number-wrapper .form-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Range slider */
.range-wrapper {
    padding: 0.25rem 0;
}

.form-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.form-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
    transform: scale(1.1);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
}

.form-range::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
}

/* Dual range slider */
.dual-range-wrapper {
    position: relative;
    padding: 0.25rem 0;
    height: 46px;
}

.dual-range-track {
    position: absolute;
    top: 12px;
    left: 0; right: 0;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.dual-range-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 3px;
    background: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    transition: left 0.05s, right 0.05s;
}

.dual-range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    outline: none;
    margin: 0;
}

.dual-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.2s, transform 0.2s;
}

.dual-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.6);
    transform: scale(1.1);
}

.dual-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    cursor: pointer;
    pointer-events: auto;
}

.dual-range-wrapper .range-labels {
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
}

.dual-range-value {
    font-weight: 400;
    font-size: 0.72rem;
    color: rgba(59, 130, 246, 0.7);
    margin-left: 0.4rem;
}

/* Checkbox */
.form-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s;
}

.form-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.form-checkbox:checked {
    background: #2563eb;
    border-color: #2563eb;
}

.form-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 5.5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Helper text */
.form-helper {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.4rem;
    line-height: 1.4;
}

/* Consent row */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}


/* ═══════════════════════════════════════════════ */
/*  INLINE FORM CARD                               */
/* ═══════════════════════════════════════════════ */

.inline-form-card {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 18, 32, 0.95) 0%, rgba(11, 12, 21, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.5rem;
    overflow: hidden;
}

.inline-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(59, 130, 246, 0.4) 30%, rgba(6, 182, 212, 0.4) 50%, rgba(59, 130, 246, 0.4) 70%, transparent 95%);
}


/* ═══════════════════════════════════════════════ */
/*  FORM TABS — underline style, prominent         */
/* ═══════════════════════════════════════════════ */

.form-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: -1.5rem -1.5rem 0 -1.5rem;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .form-tabs {
        margin: -2.5rem -2.5rem 0 -2.5rem;
        padding: 0 2.5rem;
    }
}

.form-tab {
    flex: 1;
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: color 0.25s;
    text-align: center;
    border: none;
    background: none;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    letter-spacing: -0.01em;
}

.form-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    transition: background 0.3s;
}

.form-tab:hover {
    color: rgba(255, 255, 255, 0.5);
}

.form-tab.active {
    color: #fff;
}

.form-tab.active::after {
    background: #3b82f6;
}

.form-tab.completed {
    color: rgba(59, 130, 246, 0.5);
}

.form-tab.completed::after {
    background: rgba(59, 130, 246, 0.25);
}

.form-tab-content {
    display: none;
    animation: tabFadeIn 0.35s ease;
}

.form-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.step-indicator .step-current {
    color: rgba(255, 255, 255, 0.6);
}


/* ═══════════════════════════════════════════════ */
/*  FORM DIVIDER                                   */
/* ═══════════════════════════════════════════════ */

.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-divider span {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}


/* ═══════════════════════════════════════════════ */
/*  BUTTONS                                        */
/* ═══════════════════════════════════════════════ */

.btn-submit {
    width: 100%;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::after {
    left: 100%;
}

.btn-next {
    width: 100%;
    padding: 0.9rem 2rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

.btn-next:hover {
    background: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

.btn-next svg {
    transition: transform 0.25s;
}

.btn-next:hover svg {
    transform: translateX(3px);
}

/* Form actions row */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-actions .btn-next,
.form-actions .btn-submit {
    flex: 1;
}

.btn-back {
    padding: 0.9rem 1.5rem;
    background: none;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.btn-back:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Form body padding (inside tab content) */
.form-body {
    padding-top: 2rem;
}


/* ═══════════════════════════════════════════════ */
/*  MODAL SUCCESS CARD — auth-modal pattern        */
/* ═══════════════════════════════════════════════ */

.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
    padding: 3rem 2rem;
    flex: 1;
}

.modal-success.active {
    display: flex;
    animation: successIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.modal-success-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 0.6rem;
}

.modal-success-icon svg {
    width: 100%;
    height: 100%;
}

.modal-success-circle {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: checkCircle 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.4));
}

.modal-success-mark {
    fill: none;
    stroke: #60a5fa;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkMark 0.35s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes checkCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkMark {
    to {
        stroke-dashoffset: 0;
    }
}

.modal-success h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.modal-success-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.modal-success .btn-submit {
    max-width: 260px;
    margin-top: 0.5rem;
}