/* ==========================================================================
   Aberhol Forms - Unified Premium Form Design System
   ========================================================================== */

:root {
    --af-primary: #ff5000;
    --af-primary-hover: #e04600;
    --af-primary-light: rgba(255, 80, 0, 0.08);
    --af-primary-border: rgba(255, 80, 0, 0.28);
    
    --af-dark: #121316;
    --af-card-bg: #ffffff;
    --af-card-border: #e2e8f0;
    --af-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    
    --af-text-main: #1e293b;
    --af-text-muted: #64748b;
    --af-text-light: #94a3b8;
    
    --af-input-bg: #f8fafc;
    --af-input-border: #cbd5e1;
    --af-input-focus: #ff5000;
    
    --af-radius-sm: 8px;
    --af-radius-md: 14px;
    --af-radius-lg: 20px;
    --af-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.aberhol-form-container {
    width: 100%;
    max-width: 820px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: var(--af-text-main);
    box-sizing: border-box;
}

.aberhol-form-container * {
    box-sizing: border-box;
}

.aberhol-form-card {
    background: var(--af-card-bg);
    border: 1px solid var(--af-card-border);
    border-radius: var(--af-radius-lg);
    box-shadow: var(--af-shadow);
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .aberhol-form-card {
        padding: 24px 18px;
        border-radius: var(--af-radius-md);
    }
}

/* Header */
.af-header {
    text-align: center;
    margin-bottom: 32px;
}

.af-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--af-primary-light);
    color: var(--af-primary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 14px;
    border: 1px solid var(--af-primary-border);
}

.af-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--af-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.7);
    animation: af-pulse 2s infinite;
}

@keyframes af-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 80, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(255, 80, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 80, 0, 0);
    }
}

.af-title {
    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--af-dark);
    margin: 0 0 10px 0;
}

.af-subtitle {
    font-size: 15px;
    line-height: 1.55;
    color: var(--af-text-muted);
    margin: 0 auto;
    max-width: 680px;
}

/* Sections */
.af-section {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.af-section:last-of-type {
    border-bottom: none;
}

.af-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--af-dark);
    margin-bottom: 16px;
}

.af-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--af-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.af-req-star {
    color: #ef4444;
    font-weight: 700;
    display: inline-block;
    margin-left: 3px;
    vertical-align: baseline;
    font-size: 14px;
    line-height: 1;
}

.af-opt-tag {
    font-size: 13px;
    font-weight: 400;
    color: var(--af-text-muted);
}

/* Choice Cards (Radio Cards) */
.af-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .af-choice-grid {
        grid-template-columns: 1fr;
    }
}

.af-choice-card {
    cursor: pointer;
    position: relative;
    display: block;
    margin: 0;
}

.af-choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.af-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 16px;
    background: var(--af-input-bg);
    border: 2px solid var(--af-card-border);
    border-radius: var(--af-radius-md);
    transition: var(--af-transition);
    position: relative;
}

.af-choice-card:hover .af-card-inner {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.af-choice-card input[type="radio"]:checked + .af-card-inner {
    border-color: var(--af-primary);
    background: var(--af-primary-light);
    box-shadow: 0 4px 14px rgba(255, 80, 0, 0.12);
}

.af-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 10px;
    color: var(--af-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.af-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.af-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--af-dark);
}

.af-card-desc {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--af-text-muted);
}

.af-card-check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-top: 2px;
    position: relative;
    flex-shrink: 0;
    transition: var(--af-transition);
}

.af-choice-card input[type="radio"]:checked + .af-card-inner .af-card-check {
    border-color: var(--af-primary);
    background-color: var(--af-primary);
}

.af-choice-card input[type="radio"]:checked + .af-card-inner .af-card-check::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Accordion: 3D Catalogs */
.af-accordion-box {
    margin: 16px 0 24px 0;
}

.af-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--af-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: var(--af-transition);
    text-align: left;
}

.af-accordion-toggle:hover {
    background: #f1f5f9;
    color: var(--af-primary);
    border-color: var(--af-primary-border);
}

.af-acc-text {
    flex: 1;
}

.af-acc-arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.af-accordion-toggle.active .af-acc-arrow {
    transform: rotate(180deg);
}

.af-accordion-content {
    margin-top: 10px;
}

.af-catalog-inner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--af-radius-sm);
    padding: 16px;
}

.af-catalog-intro {
    font-size: 13px;
    line-height: 1.45;
    color: var(--af-text-muted);
    margin: 0 0 12px 0;
}

.af-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.af-cat-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 6px;
    text-decoration: none !important;
    border: 1px solid #e2e8f0;
    transition: var(--af-transition);
}

.af-cat-item:hover {
    background: #ffffff;
    border-color: var(--af-primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.af-cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--af-primary);
}

.af-cat-desc {
    font-size: 11.5px;
    line-height: 1.35;
    color: var(--af-text-muted);
}

/* Notice Box */
.af-notice-box {
    background: #fffdf5;
    border: 1.5px solid #fcd34d;
    border-radius: var(--af-radius-md);
    padding: 20px 22px;
    margin-bottom: 24px;
    animation: af-fade-in 0.35s ease-out;
}

@keyframes af-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.af-notice-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.af-notice-icon {
    font-size: 24px;
    line-height: 1;
}

.af-notice-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #92400e;
    display: block;
}

.af-notice-heading {
    margin: 2px 0 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #78350f;
}

.af-notice-text p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #451a03;
    margin: 0 0 10px 0;
}

.af-notice-text p:last-child {
    margin-bottom: 0;
}

.af-notice-tip {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #78350f;
    font-weight: 500;
}

/* Grid & Form Fields */
.af-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .af-grid-2 {
        grid-template-columns: 1fr;
    }
}

.af-field-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.af-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--af-dark);
    margin: 0 0 6px 0;
    display: block;
    line-height: 1.4;
}

.af-field-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--af-text-muted);
    line-height: 1.4;
    margin-bottom: 6px;
    display: block;
}

.af-input-icon-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.af-input-icon-wrap .af-input {
    padding-left: 42px;
}

.af-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    pointer-events: none;
    transition: color 0.2s ease;
    width: 18px;
    height: 18px;
}

.af-input-icon-wrap:focus-within .af-field-icon {
    color: var(--af-primary);
}

.af-input,
.af-textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--af-input-bg);
    border: 1px solid var(--af-input-border);
    border-radius: var(--af-radius-sm);
    font-size: 14.5px;
    color: var(--af-text-main);
    transition: var(--af-transition);
    outline: none;
    font-family: inherit;
    box-shadow: none;
}

.af-textarea {
    resize: vertical;
    min-height: 80px;
}

.af-input:focus,
.af-textarea:focus {
    background: #ffffff;
    border-color: var(--af-input-focus);
    box-shadow: 0 0 0 3px var(--af-primary-light);
}

/* Field error message */
.af-field-error {
    font-size: 12.5px;
    color: #ef4444;
    font-weight: 500;
    margin-top: 4px;
    display: none;
    animation: afFadeSlide 0.2s ease;
}

.af-field-group.has-error .af-input,
.af-field-group.has-error .af-textarea {
    border-color: #ef4444 !important;
    background: #fffafa !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.af-field-group.has-error .af-field-error {
    display: block;
}

.af-field-group.has-error .af-field-icon {
    color: #ef4444 !important;
}

/* Quantity input */
.af-qty-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 170px;
}

.af-qty-input {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 6px;
    -moz-appearance: textfield;
    width: 100%;
    background: var(--af-input-bg);
    border: 1px solid var(--af-input-border);
    border-radius: var(--af-radius-sm);
}

.af-qty-input::-webkit-outer-spin-button,
.af-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.af-qty-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--af-input-bg);
    border: 1px solid var(--af-input-border);
    border-radius: var(--af-radius-sm);
    font-size: 18px;
    font-weight: 700;
    color: var(--af-dark);
    cursor: pointer;
    transition: var(--af-transition);
    flex-shrink: 0;
}

.af-qty-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* Checkbox Card */
.af-checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--af-radius-sm);
    padding: 12px 14px;
    transition: var(--af-transition);
}

.af-checkbox-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.af-checkbox-card input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--af-primary);
    cursor: pointer;
}

.af-check-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--af-text-main);
}

/* Messenger Pills */
.af-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.af-pill {
    cursor: pointer;
    margin: 0;
}

.af-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.af-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1.5px solid var(--af-input-border);
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--af-text-muted);
    transition: var(--af-transition);
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.af-msg-icon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.af-pill:hover .af-pill-badge {
    border-color: #94a3b8;
    color: var(--af-dark);
    background: #ffffff;
}

/* Checked state: Crisp, authentic brand highlight without logo inversion */
.af-pill input[value="Telegram"]:checked + .af-pill-badge {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.af-pill input[value="Viber"]:checked + .af-pill-badge {
    background: #faf5ff;
    border-color: #7F4DA0;
    color: #6b21a8;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(127, 77, 160, 0.2);
}

.af-pill input[value="WhatsApp"]:checked + .af-pill-badge {
    background: #f0fdf4;
    border-color: #16a34a;
    color: #15803d;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.af-pill input[value="Phone"]:checked + .af-pill-badge {
    background: #f1f5f9;
    border-color: #0f172a;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

/* Dropzone */
.af-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: var(--af-radius-md);
    background: #f8fafc;
    padding: 26px 20px;
    text-align: center;
    transition: var(--af-transition);
    cursor: pointer;
}

.af-dropzone:hover,
.af-dropzone.dragover {
    border-color: var(--af-primary);
    background: var(--af-primary-light);
}

.af-dropzone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.af-dropzone-icon {
    color: var(--af-primary);
    margin-bottom: 8px;
}

.af-dropzone-text {
    font-size: 14.5px;
    color: var(--af-text-main);
    margin-bottom: 4px;
}

.af-browse-link {
    color: var(--af-primary);
    text-decoration: underline;
    font-weight: 600;
}

.af-dropzone-limits {
    font-size: 11.5px;
    color: var(--af-text-muted);
    display: block;
}

/* File Previews */
.af-previews-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.af-preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--af-radius-sm);
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.af-preview-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

.af-preview-ext {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.af-preview-details {
    flex: 1;
    overflow: hidden;
}

.af-preview-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--af-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.af-preview-size {
    font-size: 11px;
    color: var(--af-text-muted);
}

.af-preview-del {
    width: 22px;
    height: 22px;
    border: none;
    background: #f1f5f9;
    color: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--af-transition);
    padding: 0;
    flex-shrink: 0;
}

.af-preview-del:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Submit */
.af-submit-area {
    text-align: center;
    margin-top: 30px;
}

.af-submit-btn,
.aberhol-form-container .af-submit-btn,
.aberhol-form-container button.af-submit-btn,
.aberhol-form-container button[type="submit"].af-submit-btn,
.container-wrap .aberhol-form-container button[type="submit"].af-submit-btn,
body .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn,
body.ascend .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn,
body[data-form-submit] .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 13px 26px !important;
    background: var(--af-primary) !important;
    background-image: linear-gradient(135deg, #ff5000 0%, #ff6200 100%) !important;
    background-color: #ff5000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: var(--af-radius-sm) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(255, 80, 0, 0.32) !important;
    transition: var(--af-transition) !important;
    text-transform: none !important;
    text-decoration: none !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.af-submit-btn:hover,
.aberhol-form-container .af-submit-btn:hover,
.aberhol-form-container button.af-submit-btn:hover,
.container-wrap .aberhol-form-container button[type="submit"].af-submit-btn:hover,
body .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn:hover,
body.ascend .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn:hover,
body[data-form-submit] .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn:hover {
    background: var(--af-primary-hover) !important;
    background-image: linear-gradient(135deg, #e04600 0%, #f05400 100%) !important;
    background-color: #e04600 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(255, 80, 0, 0.42) !important;
}

.af-submit-btn:disabled,
.aberhol-form-container .af-submit-btn:disabled,
.aberhol-form-container button.af-submit-btn:disabled,
body .container-wrap .aberhol-form-container button[type="submit"].af-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.af-wizard-nav .af-submit-btn {
    margin-left: auto !important;
}

.af-btn-arrow {
    font-size: 16px;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.af-submit-btn:hover .af-btn-arrow {
    transform: translateX(4px);
}

.af-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: af-spin 0.8s linear infinite;
    display: inline-block;
}

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

.af-privacy-note {
    font-size: 12px;
    color: var(--af-text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

.af-error-alert {
    margin-top: 18px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: var(--af-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* Success State */
.af-success-state {
    text-align: center;
    padding: 40px 20px;
    animation: af-fade-in 0.4s ease-out;
}

.af-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: #ecfdf5;
    border: 2px solid #a7f3d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.af-success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--af-dark);
    margin: 0 0 10px 0;
}

.af-success-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--af-text-muted);
    max-width: 520px;
    margin: 0 auto 28px;
}

.af-success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.af-btn-secondary {
    padding: 12px 20px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--af-text-main);
    border-radius: var(--af-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--af-transition);
}

.af-btn-secondary:hover {
    background: #e2e8f0;
}

.af-btn-telegram {
    padding: 12px 20px;
    background: #0088cc;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: var(--af-radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--af-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.af-btn-telegram:hover {
    background: #0077b5;
    transform: translateY(-1px);
}

/* ==========================================================================
   MULTI-STEP WIZARD & LAYOUT SWITCHER SYSTEM
   ========================================================================== */

/* Layout Switcher (Steps vs Classic) */
.af-layout-switcher-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.af-layout-switcher {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.af-layout-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--af-transition);
    font-family: inherit;
}

.af-layout-tab svg {
    flex-shrink: 0;
}

.af-layout-tab:hover {
    color: var(--af-dark);
}

.af-layout-tab.is-active {
    background: #ffffff;
    color: var(--af-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Stepper Component */
.af-stepper {
    position: relative;
    margin-bottom: 30px;
    padding: 0 8px;
}

.af-stepper-track-wrap {
    position: relative;
    width: 100%;
}

.af-stepper-track {
    position: absolute;
    top: 17px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    border-radius: 2px;
}

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

.af-stepper-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.af-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    background: transparent;
    border: none;
    padding: 0;
    font-family: inherit;
}

.af-step-item.is-clickable {
    cursor: pointer;
}

.af-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.af-step-circle svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
}

.af-step-item.is-active .af-step-circle {
    border-color: var(--af-primary);
    background: var(--af-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--af-primary-light);
}

.af-step-item.is-completed .af-step-circle {
    border-color: #22c55e;
    background: #22c55e;
    color: #ffffff;
}

.af-step-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    transition: var(--af-transition);
    text-align: center;
    white-space: nowrap;
}

.af-step-item.is-active .af-step-name {
    color: var(--af-dark);
    font-weight: 700;
}

.af-step-item.is-completed .af-step-name {
    color: #15803d;
}

/* Step Panes in Wizard Mode */
.aberhol-form-container[data-layout="steps"] .af-step-pane {
    display: none;
}

.aberhol-form-container[data-layout="steps"] .af-step-pane.is-active {
    display: block;
    animation: afFadeSlide 0.28s ease-out forwards;
}

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

/* Wizard Navigation Bar */
.af-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    gap: 12px;
}

.af-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--af-dark);
    border-radius: var(--af-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--af-transition);
    font-family: inherit;
}

.af-btn-prev:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.af-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--af-primary);
    border: none;
    color: #ffffff;
    border-radius: var(--af-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--af-transition);
    margin-left: auto;
    font-family: inherit;
}

.af-btn-next:hover {
    background: var(--af-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.28);
}

.af-btn-next svg,
.af-btn-prev svg {
    flex-shrink: 0;
}

.af-wizard-step-indicator {
    font-size: 13px;
    color: var(--af-text-muted);
    font-weight: 500;
}

/* In Step Mode, hide default Submit Area on steps before the last one */
.aberhol-form-container[data-layout="steps"] .af-submit-area {
    display: none;
}

.aberhol-form-container[data-layout="steps"] .af-step-pane.is-last-step ~ .af-submit-area,
.aberhol-form-container[data-layout="steps"].is-on-last-step .af-submit-area {
    display: block;
}

/* Classic Mode Styling */
.aberhol-form-container[data-layout="classic"] .af-stepper,
.aberhol-form-container[data-layout="classic"] .af-wizard-nav {
    display: none !important;
}

.aberhol-form-container[data-layout="classic"] .af-step-pane {
    display: block !important;
}

.aberhol-form-container[data-layout="classic"] .af-submit-area {
    display: block !important;
}

/* Responsiveness for Stepper */
@media (max-width: 580px) {
    .af-step-name {
        display: none;
    }
    .af-stepper-track {
        left: 18px;
        right: 18px;
    }
    .af-step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .af-wizard-nav {
        flex-direction: row;
    }
    .af-btn-next,
    .af-btn-prev,
    .aberhol-form-container .af-submit-btn {
        padding: 11px 16px !important;
        font-size: 13.5px !important;
        min-width: unset !important;
    }
}

