/**
 * CIUZO Platform - Create Cerere Page CSS
 * 3-step compact form with live preview panel
 */

/* ========================================
   Container Overrides
======================================== */
.cerere-container {
    min-height: 100vh;
}

.cerere-form-side {
    padding: 16px 24px;
}

.cerere-form-wrapper {
    max-width: 500px;
}

/* ========================================
   Header Row
======================================== */
.cerere-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cerere-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.cerere-close:hover {
    background: var(--bg-dark);
    color: var(--text);
}

.cerere-close svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Auth Header Override (compact)
======================================== */
.cerere-form-side .auth-header {
    margin-bottom: 10px;
}

.cerere-form-side .auth-header h1 {
    font-size: 1.125rem;
    margin-bottom: 2px;
}

.cerere-form-side .auth-header p {
    font-size: 0.8125rem;
    margin: 0;
}

/* ========================================
   Step Progress (3 steps)
======================================== */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    padding: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.step-line {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
    margin: 0 8px;
    margin-bottom: 18px;
    border-radius: 1px;
    transition: background 0.3s ease;
}

.step-item.active .step-number {
    background: white;
    color: var(--primary);
    border-color: white;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

.step-item.active .step-label {
    color: white;
}

.step-item.completed .step-number {
    background: #34d399;
    color: white;
    border-color: #34d399;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.3);
}

.step-item.completed .step-label {
    color: #34d399;
}

.step-line.completed {
    background: #34d399;
}

/* Mobile/tablet fallback — hidden on desktop where visual side shows it */
.step-progress-mobile {
    display: none;
}

.step-progress-mobile .step-number {
    background: var(--bg-light);
    color: var(--text-light);
    border-color: var(--border);
}

.step-progress-mobile .step-label {
    color: var(--text-light);
}

.step-progress-mobile .step-line {
    background: var(--border);
}

.step-progress-mobile .step-item.active .step-number {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.step-progress-mobile .step-item.active .step-label {
    color: var(--primary);
}

.step-progress-mobile .step-item.completed .step-number {
    background: #10b981;
    color: white;
    border-color: #10b981;
    box-shadow: none;
}

.step-progress-mobile .step-item.completed .step-label {
    color: #10b981;
}

.step-progress-mobile .step-line.completed {
    background: #10b981;
}

/* ========================================
   Form Steps
======================================== */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   Category Grid (2x2 cards)
======================================== */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.category-card {
    cursor: pointer;
    display: block;
}

.category-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: all 0.2s ease;
}

.category-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 10%, transparent);
    transition: all 0.2s ease;
}

.category-icon svg {
    width: 22px;
    height: 22px;
    color: var(--cat-color);
}

.category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.category-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.category-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover .category-content {
    border-color: var(--primary-light);
    background: rgba(37, 99, 235, 0.02);
}

.category-card input:checked + .category-content {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.06);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.category-card input:checked + .category-content .category-icon {
    transform: scale(1.05);
}

.category-grid.has-error .category-content {
    border-color: #fecaca;
}

/* Step Hint */
.step-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.step-hint svg {
    width: 12px;
    height: 12px;
    color: var(--text-light);
}

/* ========================================
   Form Fields (compact)
======================================== */
.cerere-form-side .auth-form {
    gap: 10px;
}

.cerere-form-side .form-row {
    gap: 10px;
}

.cerere-form-side .form-group {
    margin-bottom: 0;
    gap: 4px;
}

.cerere-form-side .form-group > label {
    font-size: 0.75rem;
    gap: 5px;
}

.cerere-form-side .form-group > label svg {
    width: 13px;
    height: 13px;
}

/* Inline form group: label on same row as input */
.cerere-form-side .form-group-inline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    align-items: center;
    position: relative;
    padding-bottom: 0;
    transition: padding-bottom 0.15s ease;
}

.cerere-form-side .form-group-inline.has-error {
    padding-bottom: 22px;
}

.cerere-form-side .form-group-inline > label {
    margin-bottom: 0;
    white-space: nowrap;
}

.cerere-form-side .form-group-inline > .form-error {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Phone field with prefix dropdown */
.phone-field-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    overflow: visible;
    transition: border-color 0.2s;
    position: relative;
}
.phone-field-wrap:focus-within {
    border-color: var(--primary);
}
.phone-field-wrap input[type="tel"] {
    outline: none;
    border: none;
    box-shadow: none;
}
.phone-field-wrap input[type="tel"]:focus {
    outline: none;
    border: none;
    box-shadow: none;
}
.has-error .phone-field-wrap {
    border-color: var(--error, #ef4444);
}
.phone-field-wrap input[type="tel"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    background: transparent;
    min-width: 0;
}
.phone-prefix-wrap {
    position: relative;
    flex-shrink: 0;
}
.phone-prefix-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 8px 10px 12px;
    background: none;
    border: none;
    border-right: 1px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text);
    transition: background 0.15s;
    white-space: nowrap;
}
.phone-prefix-trigger:hover {
    background: var(--bg-light);
}
.phone-prefix-flag {
    font-size: 1.1rem;
    line-height: 1;
}
.phone-prefix-code {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.phone-prefix-arrow {
    color: var(--text-light);
    transition: transform 0.2s;
}
.phone-prefix-wrap.open .phone-prefix-arrow {
    transform: rotate(180deg);
}
.phone-prefix-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
}
.phone-prefix-wrap.open .phone-prefix-dropdown {
    display: block;
}
.phone-prefix-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.85rem;
}
.phone-prefix-option:hover {
    background: var(--bg-light);
}
.phone-prefix-option.selected {
    background: rgba(37, 99, 235, 0.06);
    font-weight: 600;
}
.phone-prefix-country {
    flex: 1;
    color: var(--text);
}
.phone-prefix-val {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Inline budget: label top-left, content fills right */
.cerere-form-side .form-group-inline > .budget-range-group {
    grid-column: 1 / -1;
}

/* Inline location wrapper */
.cerere-form-side .form-group-inline > .location-input-wrapper {
    min-width: 0;
}

.cerere-form-side input[type="text"],
.cerere-form-side input[type="tel"],
.cerere-form-side input[type="email"] {
    padding: 8px 12px;
    font-size: 0.8125rem;
}

.cerere-form-side textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text);
    resize: vertical;
    min-height: 48px;
    transition: all 0.2s ease;
}

.cerere-form-side textarea:hover {
    border-color: var(--primary-light);
}

.cerere-form-side textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cerere-form-side textarea::placeholder {
    color: var(--text-light);
}

/* Character Counter — inside label, pushed right */
.char-counter {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Field Hint */
.field-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.field-hint svg {
    width: 11px;
    height: 11px;
    color: var(--text-light);
}

.field-hint.secure {
    color: #10b981;
}

.field-hint.secure svg {
    color: #10b981;
}

/* Required & Optional Labels */
.required {
    color: #ef4444;
}

.optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.6875rem;
}

/* ========================================
   Budget Range Input (compact)
======================================== */
.budget-range-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.budget-range-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.budget-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.budget-currency {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    pointer-events: none;
    z-index: 1;
}

.budget-field input[type="text"] {
    width: 100%;
    padding: 8px 10px 8px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    background: white;
    transition: all 0.2s ease;
}

.budget-field input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.budget-field input:hover {
    border-color: var(--primary-light);
}

.budget-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.budget-sep {
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

/* Budget Toggle */
.budget-toggle {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 12px;
    border: 2px solid var(--border);
    border-radius: 50px;
    transition: all 0.2s ease;
    user-select: none;
}

.budget-toggle:hover {
    border-color: var(--primary-light);
}

.budget-toggle input {
    display: none;
}

.budget-toggle input:checked ~ .toggle-label {
    color: #10b981;
}

.budget-toggle:has(input:checked) {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.06);
}

.toggle-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

/* ========================================
   Location Autocomplete
======================================== */
.location-input-wrapper {
    position: relative;
}

.location-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    max-height: 180px;
    overflow-y: auto;
    z-index: 100;
}

.location-dropdown.active {
    display: block;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text);
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.location-option:last-child {
    border-bottom: none;
}

.location-option:hover,
.location-option.highlighted {
    background: rgba(37, 99, 235, 0.06);
}

.location-option svg {
    width: 13px;
    height: 13px;
    color: var(--text-light);
    flex-shrink: 0;
}

.location-option .loc-name {
    font-weight: 500;
}

.location-option .loc-county {
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-left: auto;
}

.location-option-national {
    background: rgba(37, 99, 235, 0.04);
    font-weight: 600;
    color: var(--primary);
}

.location-option-national svg {
    color: var(--primary);
}

/* ========================================
   Sector Chips (Bucuresti)
======================================== */
.sector-container {
    margin-top: -2px;
}

.sector-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.sector-label svg {
    width: 13px;
    height: 13px;
    color: var(--text-light);
}

.sector-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sector-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sector-chip:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.sector-chip.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
}

/* ========================================
   Metro Checkbox
======================================== */
.metro-checkbox-container .checkbox-wrapper svg {
    width: 13px;
    height: 13px;
    color: var(--text-secondary);
}

/* ========================================
   Similar Offers Card
======================================== */
.similar-offer-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius);
    padding: 12px 14px;
}

.similar-offer-card .checkbox-wrapper {
    align-items: flex-start;
}

.similar-offer-card .checkmark {
    margin-top: 2px;
}

.similar-offer-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.similar-offer-text strong {
    font-size: 0.8125rem;
    color: var(--text);
}

.similar-offer-text span {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========================================
   Checkbox Base
======================================== */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text);
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper .checkmark {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 2px solid var(--border);
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 0px;
    width: 6px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--primary-light);
}

.checkbox-error .checkmark {
    border-color: #ef4444 !important;
}

/* ========================================
   Terms
======================================== */
.terms-group a {
    color: var(--primary);
    text-decoration: none;
}

.terms-group a:hover {
    text-decoration: underline;
}

/* ========================================
   Step Actions
======================================== */
.step-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-back {
    flex: 0 0 auto;
    padding: 9px 14px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: none;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--bg-dark);
    color: var(--text);
}

.btn-back svg {
    width: 14px;
    height: 14px;
}

.step-actions .btn-cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 0.8125rem;
}

.step-actions .btn-cta svg {
    width: 14px;
    height: 14px;
}

.btn-publish {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-publish:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-publish.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-publish.loading svg:first-child {
    animation: spin 1s linear infinite;
}

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

/* ========================================
   Footer Badges
======================================== */
.cerere-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.footer-badge svg {
    width: 12px;
    height: 12px;
    color: #10b981;
}

/* ========================================
   Custom Fields (compact)
======================================== */
.custom-fields-container {
    margin-top: -2px;
}

.custom-fields-divider {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 2px;
    margin-bottom: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-fields-divider svg {
    width: 12px;
    height: 12px;
    color: var(--primary);
}

.custom-fields-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Inline variant: label left, input right */
.custom-field-group.cf-inline {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    align-items: center;
}

.custom-field-group.cf-inline > .form-error {
    grid-column: 2;
}

.custom-field-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.custom-field-group label svg {
    width: 13px;
    height: 13px;
    color: var(--text-light);
}

/* Chips */
.cf-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

button.cf-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 50px;
    background: white;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.4;
}

button.cf-chip:hover {
    border-color: var(--primary-light, #93c5fd);
    color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.04);
}

button.cf-chip.active {
    border-color: var(--primary, #2563eb);
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary, #2563eb);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
    transform: scale(1.02);
}

/* Chip Icons */
.cf-chip-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-light, #94a3b8);
    transition: color 0.2s ease;
}

button.cf-chip:hover .cf-chip-icon {
    color: var(--primary, #2563eb);
}

button.cf-chip.active .cf-chip-icon {
    color: var(--primary, #2563eb);
}

/* Multiselect Badge */
.cf-multi-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    padding: 1px 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary, #2563eb);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
}

.cf-multi-badge .cf-chip-icon {
    width: 11px;
    height: 11px;
    color: var(--primary, #2563eb);
}

/* Range */
.cf-range-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cf-range-input {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    background: white;
    transition: all 0.2s ease;
}

.cf-range-input::placeholder { color: var(--text-light); font-weight: 400; }
.cf-range-input:hover { border-color: var(--primary-light); }
.cf-range-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.cf-range-sep {
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0;
    font-size: 0.8125rem;
}

/* Number */
.cf-number-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cf-number-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    background: white;
    transition: all 0.2s ease;
}

.cf-number-input::placeholder { color: var(--text-light); font-weight: 400; }
.cf-number-input:hover { border-color: var(--primary-light); }
.cf-number-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.cf-suffix {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-light);
    pointer-events: none;
    background: white;
    padding-left: 4px;
}

.cf-number-wrap .cf-number-input { padding-right: 36px; }

/* Text */
.cf-text-input {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8125rem;
    color: var(--text);
    background: white;
    transition: all 0.2s ease;
}

.cf-text-input::placeholder { color: var(--text-light); }
.cf-text-input:hover { border-color: var(--primary-light); }
.cf-text-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* Custom field errors */
.custom-field-group.has-error button.cf-chip { border-color: #fecaca; }
.custom-field-group.has-error .cf-range-input,
.custom-field-group.has-error .cf-number-input,
.custom-field-group.has-error .cf-text-input { border-color: #ef4444; background-color: #fef2f2; }

/* Preview tags */
.preview-tag-custom { background: rgba(37, 99, 235, 0.08); color: var(--primary); }
.preview-tag-custom svg { color: var(--primary) !important; }

/* ========================================
   Visual Side
======================================== */
.cerere-visual-side {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
}

.visual-step-content {
    display: none;
    animation: visualFadeIn 0.4s ease;
}

.visual-step-content.active {
    display: block;
}

@keyframes visualFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Visual Stats */
.visual-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.visual-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

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

/* Visual Testimonial */
.visual-testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 14px;
}

.visual-testimonial p {
    margin: 0 0 10px 0;
    font-size: 0.875rem;
    color: white;
    font-style: italic;
    line-height: 1.4;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.author-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.author-role {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Preview Card */
.visual-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.preview-card-large {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.preview-category {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    flex-shrink: 0;
}

.preview-category svg { width: 15px; height: 15px; color: var(--primary); }

.preview-card-badge {
    display: inline-flex;
    padding: 2px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.preview-card-body { padding: 12px 14px; }

.preview-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.preview-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.preview-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.preview-tag svg { width: 11px; height: 11px; color: var(--text-light); }

.preview-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-top: 1px solid var(--border-light);
    font-size: 0.6875rem;
    color: var(--text-light);
}

.preview-card-footer span { display: flex; align-items: center; gap: 3px; }
.preview-card-footer svg { width: 11px; height: 11px; }

/* Visual Security */
.visual-security {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.security-item { display: flex; align-items: flex-start; gap: 10px; }
.security-item > svg { width: 18px; height: 18px; color: #10b981; flex-shrink: 0; margin-top: 1px; }

.security-text { display: flex; flex-direction: column; gap: 1px; }
.security-text strong { font-size: 0.8125rem; font-weight: 600; color: white; }
.security-text span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.75); line-height: 1.3; }

/* Visual Info Box */
.visual-info-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.visual-info-box > svg { width: 16px; height: 16px; color: rgba(255, 255, 255, 0.7); flex-shrink: 0; margin-top: 1px; }
.visual-info-box p { margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); line-height: 1.4; }
.visual-info-box strong { color: white; }

/* ========================================
   Car Picker (Marca + Model unified bar)
======================================== */
.car-picker {
    position: relative;
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: border-color 0.2s ease;
}

.car-picker:hover {
    border-color: var(--primary-light);
}

.car-picker.has-dropdown {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.car-picker-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    padding-right: 28px;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    border-radius: var(--radius);
    transition: background 0.15s ease;
}

.car-picker-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.car-picker-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.car-picker-btn:hover:not(:disabled) {
    background: var(--bg-light);
}

.car-picker-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.car-picker-btn:disabled:hover {
    background: none;
}

.car-picker-btn.active {
    background: rgba(37, 99, 235, 0.04);
}

.car-picker-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    line-height: 1;
}

.car-picker-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
    width: 100%;
    min-width: 0;
}

.car-picker-value img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.car-picker-value .car-picker-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.car-picker-placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.car-picker-chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-light);
    transition: transform 0.2s ease;
}

.car-picker-btn.active .car-picker-chevron {
    transform: translateY(-50%) rotate(180deg);
}

.car-picker-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-dark, #e2e8f0);
    color: var(--text-secondary);
    font-size: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.15s ease;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.car-picker-clear:hover {
    background: #ef4444;
    color: white;
}

/* Hide chevron when clear button is visible (value selected) */
.car-picker-btn.has-value .car-picker-chevron {
    display: none;
}

.car-picker-divider {
    width: 1px;
    align-self: stretch;
    margin: 8px 0;
    background: var(--border);
}

/* Shared dropdown under the full bar */
.car-picker .car-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -2px;
    right: -2px;
    background: white;
    border: 2px solid var(--primary);
    border-top: 1px solid var(--border-light);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 100;
    overflow: hidden;
}

.car-picker .car-dropdown.active {
    display: block;
}

.car-dropdown-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.car-dropdown-search-wrap svg {
    width: 14px;
    height: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.car-dropdown-search {
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.8125rem;
    color: var(--text);
    width: 100%;
    padding: 0;
}

.car-dropdown-search::placeholder {
    color: var(--text-light);
}

.car-dropdown-list {
    max-height: 220px;
    overflow-y: auto;
}

.car-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 0.8125rem;
    color: var(--text);
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.car-dropdown-item:last-child {
    border-bottom: none;
}

.car-dropdown-item:hover,
.car-dropdown-item.active {
    background: rgba(37, 99, 235, 0.06);
}

.car-dropdown-item.active {
    font-weight: 600;
    color: var(--primary);
}

.car-dropdown-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.car-dropdown-empty {
    padding: 16px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Error states for car picker */
.car-picker.has-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* ========================================
   Error States
======================================== */
.form-group.has-error input,
.form-group.has-error textarea { border-color: #ef4444; background-color: #fef2f2; }

.form-group.has-error input:focus,
.form-group.has-error textarea:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }

.form-error {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.6875rem;
    color: #ef4444;
    animation: errorShake 0.3s ease;
}

.form-error svg { width: 11px; height: 11px; flex-shrink: 0; }

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ========================================
   Responsive — Tablet
======================================== */
@media (max-width: 1024px) {
    .cerere-visual-side { display: none; }
    .cerere-form-side { padding: 16px; }
    .cerere-form-wrapper { max-width: 460px; }
    .step-progress-mobile { display: flex; margin-top: 16px; padding: 0; }
    .step-progress-mobile .step-line { width: 36px; }
}

/* ========================================
   Responsive — Mobile
======================================== */
@media (max-width: 640px) {
    .cerere-form-side { padding: 12px 12px; }
    .cerere-header-row { margin-bottom: 8px; }
    .step-progress-mobile { margin-top: 12px; }
    .step-progress-mobile .step-number { width: 22px; height: 22px; font-size: 0.6875rem; }
    .step-progress-mobile .step-label { font-size: 0.5625rem; }
    .step-progress-mobile .step-line { width: 24px; margin: 0 6px; margin-bottom: 12px; }

    .cerere-form-side .auth-header h1 { font-size: 1rem; }
    .cerere-form-side .form-group-inline { grid-template-columns: 1fr; }
    .cerere-form-side .form-group-inline > .form-error { grid-column: 1; left: 0; right: 0; }
    .custom-field-group.cf-inline { grid-template-columns: 1fr; }
    .custom-field-group.cf-inline > .form-error { grid-column: 1; }
    .category-grid { grid-template-columns: 1fr; gap: 6px; }
    .form-row { grid-template-columns: 1fr; }
    .budget-range-inputs { flex-direction: column; gap: 4px; }
    .budget-sep { display: none; }

    .step-actions { flex-direction: column-reverse; }
    .btn-back { width: 100%; justify-content: center; }

    .footer-badges { flex-direction: column; align-items: center; gap: 6px; }
    .cf-range-wrap { flex-direction: column; gap: 4px; }
    .cf-range-sep { display: none; }
}

/* ========================================
   Auth User Contact Info
======================================== */
.auth-user-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.06);
    border: 1.5px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.auth-user-contact-info svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    flex-shrink: 0;
}

.auth-user-contact-info strong {
    color: var(--text);
}

/* ========================================
   Draft Resume Modal
======================================== */
.draft-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: draftFadeIn 0.2s ease;
}

@keyframes draftFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.draft-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: draftSlideUp 0.25s ease;
}

@keyframes draftSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.draft-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.draft-modal-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.draft-modal h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.draft-modal-summary {
    background: var(--bg-light, #f8fafc);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.draft-modal-summary .draft-row {
    display: flex;
    gap: 8px;
}

.draft-modal-summary .draft-label {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.draft-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.draft-modal-actions .btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.draft-modal-actions .btn-primary {
    background: var(--primary);
    color: white;
}

.draft-modal-actions .btn-primary:hover {
    background: var(--primary-dark, #1d4ed8);
}

.draft-modal-actions .btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

.draft-modal-actions .btn-outline:hover {
    border-color: var(--text-light);
    color: var(--text);
}

@media (max-width: 480px) {
    .draft-modal {
        padding: 24px 20px;
    }
}

/* ========================================
   SMS Verification Modal
======================================== */
.sms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: draftFadeIn 0.2s ease;
}

.sms-modal {
    background: white;
    border-radius: 18px;
    padding: 36px 32px 28px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    animation: draftSlideUp 0.25s ease;
}

.sms-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.15s;
}

.sms-modal-close:hover {
    background: var(--bg-light, #f1f5f9);
    color: var(--text);
}

.sms-modal-close svg { width: 18px; height: 18px; }

.sms-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.sms-modal-icon svg { width: 26px; height: 26px; color: var(--primary); }

.sms-modal-icon.sms-icon-success { background: rgba(16, 185, 129, 0.08); }
.sms-modal-icon.sms-icon-success svg { color: #10b981; }

.sms-modal-icon.sms-icon-info { background: rgba(245, 158, 11, 0.08); }
.sms-modal-icon.sms-icon-info svg { color: #f59e0b; }

.sms-modal h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    text-align: center;
}

.sms-subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
}

.sms-subtitle strong { color: var(--text); }

/* Phone display */
.sms-phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-light, #f8fafc);
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* SMS code inputs */
.sms-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
}

.sms-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.sms-code-inputs input {
    width: 46px;
    height: 52px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    background: white;
    transition: all 0.15s;
    caret-color: var(--primary);
}

.sms-code-inputs input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sms-code-inputs input.sms-code-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.sms-code-inputs input.sms-code-filled {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.03);
}

.sms-error {
    text-align: center;
    font-size: 0.75rem;
    color: #ef4444;
    min-height: 18px;
    margin-bottom: 4px;
}

.sms-resend-link {
    display: block;
    margin: 4px auto 0;
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--text-light);
    cursor: default;
    font-family: inherit;
    padding: 4px 8px;
}

.sms-resend-link:not([disabled]) {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* Form fields */
.sms-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.sms-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.sms-field label svg { width: 14px; height: 14px; color: var(--text-light); }

.sms-field input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.875rem;
    color: var(--text);
    background: white;
    transition: border-color 0.15s;
    font-family: inherit;
}

.sms-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.sms-field input.has-error { border-color: #ef4444; }

.sms-field-error {
    font-size: 0.7rem;
    color: #ef4444;
    min-height: 16px;
    margin-top: 2px;
}

/* Actions */
.sms-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.sms-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: white;
    transition: all 0.15s;
    font-family: inherit;
}

.sms-btn:hover { background: var(--primary-dark, #1d4ed8); }
.sms-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.sms-btn svg { width: 16px; height: 16px; }

.sms-forgot-link {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 4px 8px;
}

.sms-forgot-link:hover { color: var(--primary-dark, #1d4ed8); }

/* Steps visibility */
.sms-step { display: none; text-align: center; }
.sms-step.active { display: block; }

/* Loading overlay */
.sms-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.sms-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: smsSpin 0.7s linear infinite;
}

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

/* Code section spacing */
.sms-code-section { margin-bottom: 0; }

@media (max-width: 480px) {
    .sms-modal { padding: 28px 20px 22px; }
    .sms-code-inputs input { width: 40px; height: 46px; font-size: 1.1rem; }
    .sms-code-inputs { gap: 5px; }
}

/* ========================================
   Print
======================================== */
@media print {
    .cerere-container { display: none; }
}
