/*
 * Belle Asset Quick Match form — [belle_quick_match] (inc/belle-quick-match.php)
 * Recreates the look of the original React form (inquiry.belleasset.com).
 * Everything is scoped to .bqm so theme/Elementor styles can't leak in.
 */

.bqm {
    --bqm-gold: #aa8656;
    --bqm-gold-dark: #8a6d46;
    --bqm-text: #3b2b23;
    --bqm-cream: #f9f6f0;
    --bqm-border: #eaeaea;
    --bqm-border-hover: #d6cfc9;
    --bqm-beige: #e8e3dc;
    --bqm-gray-100: #f3f4f6;
    --bqm-gray-200: #e5e7eb;
    --bqm-gray-300: #d1d5dc;
    --bqm-gray-400: #99a1af;
    --bqm-gray-500: #6a7282;
    --bqm-gray-600: #4a5565;
    --bqm-gray-700: #364153;
    --bqm-gray-800: #1e2939;
    --bqm-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --bqm-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);

    position: relative;
    min-height: 640px;
    background: var(--bqm-cream);
    color: var(--bqm-text);
    font-family: "Prompt", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
    -webkit-font-smoothing: antialiased;
}

/* The site's custom CSS sets "Museo Sans Rounded" on body, div, span, p, a and headings with
   !important — so the form's font needs !important (and a more specific selector) too. */
.bqm,
.bqm div,
.bqm span,
.bqm p,
.bqm a,
.bqm h1,
.bqm h2,
.bqm strong,
.bqm label,
.bqm button,
.bqm input,
.bqm textarea {
    font-family: "Prompt", sans-serif !important;
}

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

.bqm [hidden] {
    display: none !important;
}

.bqm svg {
    display: block;
}

.bqm .bqm-form {
    max-width: 448px;
    margin: 0 auto;
}

/* ---- Header: back · Belle Asset · percent + progress bar ---------------- */

.bqm .bqm-header {
    background: #fff;
    border-bottom: 1px solid var(--bqm-gray-200);
    padding: 16px 16px 12px;
}

.bqm .bqm-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bqm .bqm-back {
    padding: 0 8px;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--bqm-gray-400);
    font-family: inherit;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s;
}

.bqm .bqm-back:hover,
.bqm .bqm-back:focus-visible {
    color: var(--bqm-gold);
    background: none;
}

.bqm .bqm-brand {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    letter-spacing: .025em;
    color: var(--bqm-text);
}

.bqm .bqm-percent {
    width: 32px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: right;
    color: var(--bqm-gray-500);
}

.bqm .bqm-progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 9999px;
    background: var(--bqm-gray-100);
}

.bqm .bqm-progress-bar {
    width: 0;
    height: 6px;
    border-radius: 9999px;
    background: var(--bqm-gold);
    transition: width .5s ease-out;
}

/* ---- Steps ---------------------------------------------------------------- */

.bqm .bqm-main {
    padding: 24px 24px 96px;
}

.bqm .bqm-step {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.bqm .bqm-step.is-active {
    opacity: 1;
    transform: none;
}

.bqm .bqm-step [tabindex="-1"]:focus {
    outline: none;
}

.bqm .bqm-step-intro {
    margin-top: 40px;
    text-align: center;
}

.bqm .bqm-logo {
    display: block;
    width: 128px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 24px;
}

.bqm .bqm-h1 {
    margin: 0 0 16px;
    padding: 0;
    font-family: inherit;
    font-size: 30px;
    line-height: 36px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--bqm-text);
}

.bqm .bqm-lead {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 1.625;
    color: var(--bqm-gray-600);
}

.bqm .bqm-title {
    margin: 0 0 8px;
    padding: 0;
    font-family: inherit;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--bqm-text);
}

.bqm .bqm-hint {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--bqm-gold);
}

.bqm .bqm-comment {
    margin-bottom: 24px;
    padding: 16px;
    border-left: 4px solid var(--bqm-gold);
    border-radius: 12px;
    background: rgba(170, 134, 86, .1);
}

.bqm .bqm-comment strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
}

.bqm .bqm-comment p {
    margin: 0;
    font-size: 14px;
    line-height: 1.625;
    color: var(--bqm-gray-800);
}

/* ---- Answer cards ------------------------------------------------------- */

.bqm .bqm-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.bqm .bqm-option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 2px solid var(--bqm-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    font-weight: 400;
    cursor: pointer;
    transition: border-color .2s ease-in-out, background-color .2s ease-in-out;
}

.bqm .bqm-option:hover {
    border-color: var(--bqm-border-hover);
}

.bqm .bqm-option.is-selected {
    border-color: var(--bqm-gold);
    background: #fff;
}

.bqm .bqm-option:has(input:focus-visible) {
    outline: 2px solid var(--bqm-gold);
    outline-offset: 2px;
}

/* Real radio/checkbox, visually hidden but still focusable */
.bqm .bqm-option input,
.bqm .bqm-currency input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.bqm .bqm-option-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bqm .bqm-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: rgba(170, 134, 86, .15);
    color: var(--bqm-gold);
}

.bqm .bqm-icon svg {
    width: 20px;
    height: 20px;
}

.bqm .bqm-option-label {
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: var(--bqm-gray-800);
}

.bqm .bqm-option:not(.has-icon) .bqm-option-label {
    margin-left: 8px;
}

.bqm .bqm-check {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--bqm-gray-300);
    border-radius: 9999px;
    transition: all .2s ease-in-out;
}

.bqm .bqm-check.is-square {
    border-radius: 6px;
}

.bqm .bqm-check svg {
    width: 16px;
    height: 16px;
    color: #fff;
    opacity: 0;
    transform: scale(.5);
    transition: all .2s ease-in-out;
}

.bqm .bqm-option.is-selected .bqm-check {
    border-color: var(--bqm-gold);
    background: var(--bqm-gold);
}

.bqm .bqm-option.is-selected .bqm-check svg {
    opacity: 1;
    transform: scale(1);
}

/* ---- Buttons -------------------------------------------------------------- */

.bqm .bqm-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 9999px;
    background: var(--bqm-gold);
    box-shadow: var(--bqm-shadow-md);
    color: #fff;
    font-family: inherit;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    cursor: pointer;
    transition: background-color .15s, opacity .15s;
}

.bqm .bqm-btn:hover:not(:disabled),
.bqm .bqm-btn:focus-visible {
    background: var(--bqm-gold-dark);
    color: #fff;
}

.bqm .bqm-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.bqm .bqm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    padding: 16px 24px;
    border: 2px solid var(--bqm-gold);
    border-radius: 9999px;
    background: transparent;
    box-shadow: var(--bqm-shadow-sm);
    color: var(--bqm-gold);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}

.bqm .bqm-btn-outline:hover,
.bqm .bqm-btn-outline:focus-visible {
    background: var(--bqm-gold);
    color: #fff;
    text-decoration: none;
}

.bqm .bqm-btn-outline svg {
    width: 24px;
    height: 24px;
}

/* ---- Budget --------------------------------------------------------------- */

.bqm .bqm-budget-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0 32px;
}

.bqm .bqm-currency {
    display: flex;
    width: 100%;
    max-width: 280px;
    margin: 0 auto 40px;
    padding: 6px;
    border-radius: 9999px;
    background: rgba(232, 227, 220, .6);
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, .05);
}

.bqm .bqm-currency label {
    flex: 1;
    margin: 0;
}

.bqm .bqm-currency span {
    display: block;
    padding: 8px 0;
    border-radius: 9999px;
    color: var(--bqm-gray-500);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
}

.bqm .bqm-currency span:hover {
    color: var(--bqm-gold);
}

.bqm .bqm-currency input:checked + span {
    background: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    color: var(--bqm-gold);
}

.bqm .bqm-currency input:focus-visible + span {
    outline: 2px solid var(--bqm-gold);
    outline-offset: 2px;
}

.bqm .bqm-budget {
    display: flex;
    align-items: baseline;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bqm-gray-300);
    transition: border-color .15s;
}

.bqm .bqm-budget:focus-within {
    border-color: var(--bqm-gold);
}

.bqm .bqm-budget input {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bqm-text);
    font-family: inherit;
    font-size: 36px;
    line-height: 40px;
    font-weight: 600;
    text-align: center;
}

.bqm .bqm-budget input::placeholder {
    color: var(--bqm-gray-400);
    opacity: 1;
}

.bqm .bqm-budget-currency {
    margin-left: 8px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    color: var(--bqm-text);
}

/* ---- Your details --------------------------------------------------------- */

.bqm .bqm-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bqm .bqm-input {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 16px;
    border: 2px solid var(--bqm-gray-200);
    border-radius: 12px;
    outline: 0;
    background: rgba(255, 255, 255, .95);
    box-shadow: none;
    color: var(--bqm-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 24px;
    transition: border-color .15s;
}

.bqm .bqm-input::placeholder {
    color: var(--bqm-gray-400);
    opacity: 1;
}

.bqm .bqm-input:focus {
    border-color: var(--bqm-gold);
}

.bqm .bqm-input.is-invalid {
    border-color: #c2410c;
}

.bqm textarea.bqm-input {
    resize: vertical;
}

.bqm .bqm-field {
    padding-top: 8px;
}

.bqm .bqm-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--bqm-gray-800);
}

.bqm .bqm-optional {
    color: var(--bqm-gold);
}

.bqm .bqm-muted {
    margin-left: 4px;
    font-weight: 400;
    color: var(--bqm-gray-500);
}

.bqm .bqm-file {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px;
    border: 1px solid var(--bqm-gray-200);
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    transition: border-color .15s;
}

.bqm .bqm-file:focus-within {
    border-color: var(--bqm-gold);
}

.bqm .bqm-file input {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.bqm .bqm-file-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(170, 134, 86, .15);
    color: var(--bqm-gold);
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.bqm .bqm-file-name {
    margin-left: 12px;
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    color: var(--bqm-gray-500);
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Honeypot — off-screen for people, still in the form for bots */
.bqm .bqm-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.bqm .bqm-error {
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.5;
}

.bqm .bqm-error a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.bqm .bqm-submit {
    margin-top: 32px;
}

.bqm .bqm-spinner svg {
    width: 20px;
    height: 20px;
    animation: bqm-spin 1s linear infinite;
}

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

.bqm .bqm-footnote {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: var(--bqm-gray-700);
}

/* ---- Thank you ------------------------------------------------------------ */

.bqm .bqm-step-thanks {
    margin-top: 64px;
    text-align: center;
}

.bqm .bqm-thanks-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 9999px;
    background: rgba(170, 134, 86, .15);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    color: var(--bqm-gold);
}

.bqm .bqm-thanks-icon svg {
    width: 48px;
    height: 48px;
}

.bqm .bqm-step-thanks .bqm-title {
    margin-bottom: 24px;
}

.bqm .bqm-thanks-lead {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    color: var(--bqm-text);
}

.bqm .bqm-thanks-text {
    margin: 0 0 56px;
    color: var(--bqm-gray-700);
}

.bqm-noscript {
    padding: 16px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .bqm .bqm-step,
    .bqm .bqm-progress-bar,
    .bqm .bqm-option,
    .bqm .bqm-check,
    .bqm .bqm-check svg {
        transition: none;
    }

    .bqm .bqm-spinner svg {
        animation-duration: 3s;
    }
}
