/**
 * FQCB Frontend Styles
 *
 * Modern, premium UI for the QR Code Builder.
 * All styles scoped under .fqcb-builder to prevent theme conflicts.
 *
 * @package FreeQRCodeBuilder
 * @since   1.0.0
 *
 * Copyright (C) 2026 Merthopia. All Rights Reserved.
 */

/* ================================================================== */
/*  CSS Custom Properties                                              */
/* ================================================================== */
.fqcb-builder {
    --fqcb-bg: #ffffff;
    --fqcb-surface: #f7f7f8;
    --fqcb-surface-2: #eeeff1;
    --fqcb-border: rgba(0, 0, 0, 0.08);
    --fqcb-border-focus: rgba(217, 79, 79, 0.45);
    --fqcb-text: #1a1a2e;
    --fqcb-text-muted: #4a4a5a;
    --fqcb-text-dim: #8e8e9a;
    --fqcb-accent: #D94F4F;
    --fqcb-accent-2: #c0392b;
    --fqcb-gradient: linear-gradient(135deg, #D94F4F 0%, #c0392b 100%);
    --fqcb-gradient-subtle: linear-gradient(135deg, rgba(217, 79, 79, 0.06) 0%, rgba(192, 57, 43, 0.06) 100%);
    --fqcb-success: #059669;
    --fqcb-warning: #d97706;
    --fqcb-danger: #dc2626;
    --fqcb-radius: 12px;
    --fqcb-radius-sm: 8px;
    --fqcb-radius-xs: 6px;
    --fqcb-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --fqcb-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
    --fqcb-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --fqcb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ================================================================== */
/*  Base Container                                                      */
/* ================================================================== */
.fqcb-builder {
    font-family: var(--fqcb-font);
    color: var(--fqcb-text);
    background: var(--fqcb-bg);
    border-radius: 16px;
    overflow: hidden;
    max-width: 1100px;
    margin: 2rem auto;
    box-shadow: var(--fqcb-shadow-lg);
    line-height: 1.5;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fqcb-builder *,
.fqcb-builder *::before,
.fqcb-builder *::after {
    box-sizing: border-box;
}

/* ================================================================== */
/*  Header                                                              */
/* ================================================================== */
.fqcb-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    background: var(--fqcb-gradient-subtle);
    border-bottom: 1px solid var(--fqcb-border);
}

.fqcb-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--fqcb-radius);
    background: var(--fqcb-gradient);
    color: #fff;
    flex-shrink: 0;
}

.fqcb-header-text h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    background: var(--fqcb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.fqcb-header-text p {
    margin: 4px 0 0 0;
    color: var(--fqcb-text-muted);
    font-size: 13px;
}

/* ================================================================== */
/*  Main Layout                                                         */
/* ================================================================== */
.fqcb-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    min-height: 500px;
}

.fqcb-form-column {
    padding: 24px 28px;
    border-right: 1px solid var(--fqcb-border);
}

.fqcb-preview-column {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: rgba(217, 79, 79, 0.03);
}

/* ================================================================== */
/*  Tabs                                                                */
/* ================================================================== */
.fqcb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fqcb-border);
}

.fqcb-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--fqcb-border);
    border-radius: 100px;
    background: transparent;
    color: var(--fqcb-text-muted);
    font-size: 14.5px;
    font-weight: 500;
    font-family: var(--fqcb-font);
    cursor: pointer;
    transition: all var(--fqcb-transition);
    white-space: nowrap;
}

.fqcb-tab-btn:hover {
    color: var(--fqcb-text);
    border-color: rgba(0, 0, 0, 0.12);
    background: var(--fqcb-surface);
}

.fqcb-tab-btn.active {
    background: var(--fqcb-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(217, 79, 79, 0.25);
}

.fqcb-tab-btn svg {
    flex-shrink: 0;
}

/* ================================================================== */
/*  Tab Panels                                                          */
/* ================================================================== */
.fqcb-tab-panel {
    display: none;
    animation: fqcbFadeIn 0.25s ease;
}

.fqcb-tab-panel.active {
    display: block;
}

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

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

/* ================================================================== */
/*  Form Fields                                                         */
/* ================================================================== */
.fqcb-field-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.fqcb-field {
    flex: 1;
    min-width: 0;
}

.fqcb-field-sm {
    flex: 0 0 120px;
}

.fqcb-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--fqcb-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fqcb-required {
    color: var(--fqcb-danger);
}

.fqcb-field input[type="text"],
.fqcb-field input[type="tel"],
.fqcb-field input[type="email"],
.fqcb-field input[type="url"],
.fqcb-field textarea,
.fqcb-field select {
    width: 100%;
    padding: 10px 14px;
    background: var(--fqcb-surface);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius-sm);
    color: var(--fqcb-text);
    font-size: 13.5px;
    font-family: var(--fqcb-font);
    transition: all var(--fqcb-transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.fqcb-field input::placeholder,
.fqcb-field textarea::placeholder {
    color: var(--fqcb-text-dim);
}

.fqcb-field input:focus,
.fqcb-field textarea:focus,
.fqcb-field select:focus {
    border-color: var(--fqcb-border-focus);
    box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.12);
    background: var(--fqcb-surface-2);
}

.fqcb-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.fqcb-field textarea {
    resize: vertical;
    min-height: 70px;
}

/* ================================================================== */
/*  Social Media Grid                                                   */
/* ================================================================== */
.fqcb-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fqcb-social-field {
    display: flex;
    flex-direction: column;
}

.fqcb-social-field label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--fqcb-text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fqcb-social-field input {
    width: 100%;
    padding: 8px 12px;
    background: var(--fqcb-surface);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius-xs);
    color: var(--fqcb-text);
    font-size: 13px;
    font-family: var(--fqcb-font);
    transition: all var(--fqcb-transition);
    outline: none;
}

.fqcb-social-field input::placeholder {
    color: var(--fqcb-text-dim);
}

.fqcb-social-field input:focus {
    border-color: var(--fqcb-border-focus);
    box-shadow: 0 0 0 3px rgba(217, 79, 79, 0.12);
}

.fqcb-hint {
    font-size: 12.5px;
    color: var(--fqcb-text-dim);
    margin: 0 0 14px 0;
}

/* ================================================================== */
/*  Colour Picker                                                       */
/* ================================================================== */
.fqcb-color-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fqcb-color-wrap input[type="color"] {
    width: 44px;
    height: 38px;
    border: 2px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius-sm);
    cursor: pointer;
    padding: 2px;
    background: var(--fqcb-surface);
    transition: border-color var(--fqcb-transition);
}

.fqcb-color-wrap input[type="color"]:hover {
    border-color: var(--fqcb-accent);
}

.fqcb-color-label {
    font-size: 13px;
    color: var(--fqcb-text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    text-transform: uppercase;
}

/* ================================================================== */
/*  Preview Card                                                        */
/* ================================================================== */
.fqcb-preview-card {
    width: 100%;
    background: var(--fqcb-surface);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 24px;
}

.fqcb-preview-card h3 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--fqcb-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fqcb-preview-canvas {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: var(--fqcb-radius-sm);
    padding: 5px;
    margin-bottom: 12px;
    border: 1px solid var(--fqcb-border);
}

.fqcb-preview-canvas img,
.fqcb-preview-canvas .fqcb-qr-preview-img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.fqcb-preview-error {
    color: var(--fqcb-danger);
    font-size: 13px;
    margin: 0;
}

.fqcb-preview-hint {
    font-size: 12px;
    color: var(--fqcb-text-dim);
    margin: 8px 0 0;
}

/* ================================================================== */
/*  Frame Selection Grid                                                */
/* ================================================================== */
.fqcb-frame-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.fqcb-frame-btn {
    background: var(--fqcb-bg);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--fqcb-text-muted);
    transition: all 0.2s;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fqcb-frame-btn:hover {
    border-color: var(--fqcb-primary);
    background: var(--fqcb-bg-hover);
    box-shadow: 0 4px 12px rgba(217, 79, 79, 0.15);
    transform: translateY(-2px);
}

.fqcb-frame-btn.active {
    border-color: var(--fqcb-primary);
    background: rgba(217, 79, 79, 0.05);
    color: var(--fqcb-primary);
    font-weight: 600;
}

/* Visual Representations of Frames */
.fqcb-frame-btn::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 4px;
    margin-bottom: 6px;
    opacity: 0.5;
    transition: all 0.2s;
}

.fqcb-frame-btn:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.fqcb-frame-btn[data-value="bottom-text"]::before {
    border-bottom-width: 8px;
}

.fqcb-frame-btn[data-value="top-text"]::before {
    border-top-width: 8px;
}

.fqcb-frame-btn[data-value="none"]::before {
    border: 2px dashed currentColor;
}

/* Remove Logo Button */
#fqcb-remove-logo {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--fqcb-danger) !important;
    border: 1px solid rgba(220, 38, 38, 0.2) !important;
    border-radius: var(--fqcb-radius-xs);
    font-size: 11.5px !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

#fqcb-remove-logo:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--fqcb-danger) !important;
    transform: translateY(-1px);
}

/* ================================================================== */
/*  Export Card (below preview)                                         */
/* ================================================================== */
.fqcb-export-card {
    background: var(--fqcb-bg);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius);
    padding: 14px;
    margin-top: 16px;
}

.fqcb-export-options {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.fqcb-field-half {
    flex: 1;
}

.fqcb-export-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.fqcb-export-actions .fqcb-btn {
    flex: 1;
    justify-content: center;
    font-size: 13px;
    padding: 10px 12px;
}

.fqcb-export-actions .fqcb-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    /* pointer-events: none; removed to allow click for toast */
}

.fqcb-export-card .fqcb-terms-section {
    border-top: 1px solid var(--fqcb-border);
    padding-top: 14px;
    margin-top: 0;
}

.fqcb-export-card .fqcb-terms-content {
    max-height: 80px;
    overflow-y: auto;
    font-size: 11px;
    line-height: 1.5;
    color: var(--fqcb-text-dim);
    margin-bottom: 10px;
    padding: 8px;
    background: var(--fqcb-bg-hover);
    border-radius: var(--fqcb-radius-sm);
}

.fqcb-export-card .fqcb-terms-accept {
    font-size: 12.5px;
}

/* ================================================================== */
/*  Character Count Badge                                               */
/* ================================================================== */
.fqcb-char-count {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.fqcb-char-count.ok {
    background: rgba(16, 185, 129, 0.12);
    color: var(--fqcb-success);
}

.fqcb-char-count.warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--fqcb-warning);
}

.fqcb-char-count.danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--fqcb-danger);
}

/* ================================================================== */
/*  Terms & Conditions                                                  */
/* ================================================================== */
.fqcb-terms-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--fqcb-border);
}

.fqcb-terms-section h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--fqcb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fqcb-terms-content {
    max-height: 120px;
    overflow-y: auto;
    padding: 12px 14px;
    background: var(--fqcb-surface);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius-sm);
    font-size: 12.5px;
    color: var(--fqcb-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.fqcb-terms-content::-webkit-scrollbar {
    width: 4px;
}

.fqcb-terms-content::-webkit-scrollbar-thumb {
    background: var(--fqcb-text-dim);
    border-radius: 4px;
}

.fqcb-terms-accept {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--fqcb-text);
    user-select: none;
}

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

/* ================================================================== */
/*  Action Buttons                                                      */
/* ================================================================== */
.fqcb-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.fqcb-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: var(--fqcb-radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--fqcb-font);
    cursor: pointer;
    transition: all var(--fqcb-transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.fqcb-btn svg {
    flex-shrink: 0;
}

.fqcb-btn-primary {
    background: var(--fqcb-gradient);
    color: #fff;
    box-shadow: 0 2px 12px rgba(217, 79, 79, 0.25);
}

.fqcb-btn-primary:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(217, 79, 79, 0.35);
}

.fqcb-btn-primary:active:not(.disabled) {
    transform: translateY(0);
}

.fqcb-btn-primary.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.fqcb-btn-secondary {
    background: var(--fqcb-surface);
    color: var(--fqcb-text);
    border: 1px solid var(--fqcb-border);
}

.fqcb-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

/* ================================================================== */
/*  Reorganized Style Panel                                             */
/* ================================================================== */
.fqcb-style-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--fqcb-border);
    padding-bottom: 8px;
    overflow-x: auto;
}

.fqcb-style-tab {
    background: none;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fqcb-text-muted);
    cursor: pointer;
    border-radius: var(--fqcb-radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.fqcb-style-tab:hover {
    background: var(--fqcb-bg-hover);
    color: var(--fqcb-text);
}

.fqcb-style-tab.active {
    background: rgba(217, 79, 79, 0.1);
    color: var(--fqcb-primary);
    font-weight: 600;
}

.fqcb-style-content {
    display: none;
    animation: fadeIn 0.2s ease;
}

.fqcb-style-content.active {
    display: block;
}

/* Shape Grid */
.fqcb-shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.fqcb-shape-btn {
    width: 100%;
    aspect-ratio: 1;
    background: var(--fqcb-bg);
    border: 1px solid var(--fqcb-border);
    border-radius: var(--fqcb-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 8px;
}

.fqcb-shape-btn:hover {
    border-color: var(--fqcb-primary);
}

.fqcb-shape-btn.active {
    border-color: var(--fqcb-primary);
    background: rgba(217, 79, 79, 0.05);
    box-shadow: 0 0 0 1px var(--fqcb-primary);
}

.fqcb-shape-icon,
.fqcb-eye-icon,
.fqcb-ball-icon {
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    color: var(--fqcb-text);
}

/* CSS Shapes */
.fqcb-shape-square {
    border-radius: 0;
}

.fqcb-shape-dots {
    border-radius: 50%;
    transform: scale(0.85);
}

.fqcb-shape-rounded {
    border-radius: 20%;
}

.fqcb-shape-extra-rounded {
    border-radius: 40%;
}

.fqcb-shape-classy {
    border-radius: 0 50% 50% 50%;
}

.fqcb-shape-classy-rounded {
    border-radius: 50% 50% 0 50%;
}

.fqcb-eye-square {
    border: 3px solid currentColor;
    background: none;
}

.fqcb-eye-circle {
    border: 3px solid currentColor;
    background: none;
    border-radius: 50%;
}

.fqcb-eye-rounded {
    border: 3px solid currentColor;
    background: none;
    border-radius: 25%;
}

.fqcb-eye-leaf {
    border: 3px solid currentColor;
    background: none;
    border-radius: 0 50% 0 50%;
}

.fqcb-ball-square {
    border-radius: 0;
}

.fqcb-ball-circle {
    border-radius: 50%;
}

/* File Upload */
.fqcb-file-upload {
    position: relative;
    border: 2px dashed var(--fqcb-border);
    border-radius: var(--fqcb-radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--fqcb-bg-hover);
}

.fqcb-file-upload:hover {
    border-color: var(--fqcb-primary);
    background: #fff;
}

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

.fqcb-file-upload-ui {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fqcb-text-muted);
}

.fqcb-file-upload-ui svg {
    color: var(--fqcb-primary);
}

/* Frame Grid */
.fqcb-frame-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fqcb-frame-btn {
    padding: 8px 16px;
    border: 1px solid var(--fqcb-border);
    background: var(--fqcb-bg);
    border-radius: var(--fqcb-radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.fqcb-frame-btn:hover {
    border-color: var(--fqcb-text-muted);
}

.fqcb-frame-btn.active {
    background: rgba(217, 79, 79, 0.1);
    border-color: var(--fqcb-primary);
    color: var(--fqcb-primary);
    font-weight: 500;
}

/* ================================================================== */
/*  Footer                                                              */
/* ================================================================== */
.fqcb-footer {
    padding: 16px 32px;
    border-top: 1px solid var(--fqcb-border);
    text-align: center;
}

.fqcb-footer p {
    margin: 0;
    font-size: 12px;
    color: var(--fqcb-text-dim);
}

.fqcb-footer a {
    color: var(--fqcb-accent);
    text-decoration: none;
    font-weight: 500;
}

.fqcb-footer a:hover {
    text-decoration: underline;
}

/* ================================================================== */
/*  Toast                                                               */
/* ================================================================== */
.fqcb-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #f8fafc;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fqcb-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ================================================================== */
/*  Responsive                                                          */
/* ================================================================== */
@media (max-width: 860px) {
    .fqcb-layout {
        grid-template-columns: 1fr;
    }

    .fqcb-form-column {
        border-right: none;
        border-bottom: 1px solid var(--fqcb-border);
    }

    .fqcb-preview-column {
        padding: 20px;
    }

    .fqcb-preview-card {
        position: static;
    }
}

@media (max-width: 560px) {
    .fqcb-builder {
        margin: 1rem;
        border-radius: 12px;
    }

    .fqcb-header {
        padding: 18px 20px;
    }

    .fqcb-form-column {
        padding: 18px 16px;
    }

    .fqcb-field-row {
        flex-direction: column;
        gap: 10px;
    }

    .fqcb-field-sm {
        flex: 1;
    }

    .fqcb-social-grid {
        grid-template-columns: 1fr;
    }

    .fqcb-tabs {
        gap: 4px;
    }

    .fqcb-tab-btn span {
        display: none;
    }

    .fqcb-tab-btn {
        padding: 8px 10px;
    }

    .fqcb-actions {
        flex-direction: column;
    }

    .fqcb-btn {
        justify-content: center;
    }
}