/* ==========================================================================
   Faházasok – Online faházépítő / ajánlatkérő modul
   Verzió: 2.0
   A színek a fahazasok.hu új arculatához igazodnak:
     terrakotta #b34325 · fenyőzöld #2a3f33 · homok #c7b98d · tinta #1a1c1e
   ========================================================================== */

#vd-tabs {
    --vd-clay: #b34325;
    --vd-clay-bright: #d05a37;
    --vd-clay-deep: #8d3319;
    --vd-forest: #2a3f33;
    --vd-sand: #c7b98d;
    --vd-ink: #14171a;
    --vd-paper: #eeeee5;

    --vd-surface: rgba(255, 255, 255, 0.045);
    --vd-surface-strong: rgba(255, 255, 255, 0.075);
    --vd-line: rgba(238, 238, 229, 0.14);
    --vd-line-strong: rgba(238, 238, 229, 0.26);
    --vd-text: #eeeee5;
    --vd-muted: rgba(238, 238, 229, 0.62);
    --vd-faint: rgba(238, 238, 229, 0.42);

    --vd-radius: 22px;
    --vd-radius-sm: 14px;
    --vd-radius-lg: 30px;
    --vd-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
    --vd-gap: clamp(16px, 2.2vw, 28px);

    position: relative;
    isolation: isolate;
    color: var(--vd-text);
    background-color: #10130f;
    background-image:
        radial-gradient(120% 80% at 12% 0%, rgba(42, 63, 51, 0.95) 0%, rgba(16, 19, 15, 0) 60%),
        radial-gradient(90% 70% at 92% 8%, rgba(179, 67, 37, 0.28) 0%, rgba(16, 19, 15, 0) 55%),
        linear-gradient(180deg, #182018 0%, #10130f 45%, #0c0e0b 100%);
    padding: clamp(28px, 5vw, 72px) clamp(14px, 4vw, 48px) clamp(40px, 6vw, 90px);
    /* nem "hidden": az levágná a ragadós (sticky) 3D nézetet */
    overflow-x: clip;
}

/* dekoratív fényrétegek (a modul saját .vd-overlay eleme) */
#vd-tabs > .vd-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(60% 40% at 50% 100%, rgba(199, 185, 141, 0.10) 0%, rgba(0, 0, 0, 0) 70%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.012) 0 2px, rgba(0, 0, 0, 0) 2px 6px);
}

/* --- alap reset a téma stílusaival szemben -------------------------------- */
#vd-tabs *,
#vd-tabs *::before,
#vd-tabs *::after {
    box-sizing: border-box;
}

#vd-tabs input,
#vd-tabs select,
#vd-tabs textarea,
#vd-tabs button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

#vd-tabs button {
    cursor: pointer;
    border: none;
    background: none;
}

#vd-tabs h2,
#vd-tabs h3 {
    margin: 0;
    color: var(--vd-text);
    letter-spacing: -0.01em;
}

#vd-tabs p {
    margin: 0;
}

#vd-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#vd-form {
    position: relative;
    padding: 0;
    min-height: 0;
    margin: 0;
}

/* ==========================================================================
   Fejléc
   ========================================================================== */
.vd-hero {
    max-width: 760px;
    margin: 0 auto clamp(24px, 3.5vw, 44px);
    text-align: center;
}

.vd-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    border: 1px solid rgba(199, 185, 141, 0.35);
    border-radius: 999px;
    background: rgba(199, 185, 141, 0.10);
    color: var(--vd-sand);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.vd-hero-eyebrow .vd-icon {
    width: 15px;
    height: 15px;
}

.vd-hero-title {
    margin: 18px 0 12px;
    font-size: clamp(1.85rem, 4.2vw, 3.1rem);
    font-weight: 500;
    line-height: 1.08;
}

.vd-hero-lead {
    color: var(--vd-muted);
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.6;
    max-width: 56ch;
    margin: 0 auto;
}

/* ==========================================================================
   Lépés navigáció
   ========================================================================== */
#vd-tabs .vd-tabs-nav-container {
    /* a vd.js elrejtené a sávot, ha két sorba törne – nálunk nem törik */
    visibility: visible !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-width: 1400px;
    margin: 0 auto clamp(18px, 2.5vw, 30px);
    padding: 6px 2px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

#vd-tabs .vd-tabs-nav-container::-webkit-scrollbar {
    display: none;
}

#vd-secondary-nav {
    display: none !important;
}

#vd-tabs .ui-tabs-nav,
#vd-tabs .vd-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    min-width: max-content;
    width: 100%;
}

#vd-tabs .vd-steps > li {
    flex: 1 1 auto;
    min-width: max-content;
    padding: 0;
    margin: 0;
    border: none;
}

#vd-tabs .vd-steps > li a,
#vd-tabs .vd-steps > li .ui-tabs-anchor {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 13px 16px;
    border: 1px solid var(--vd-line);
    border-radius: 999px;
    background: var(--vd-surface);
    color: var(--vd-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

#vd-tabs .vd-steps > li a:hover {
    color: var(--vd-text);
    border-color: var(--vd-line-strong);
    background: var(--vd-surface-strong);
    transform: translateY(-1px);
}

#vd-tabs .vd-steps .vd-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 50%;
    background: rgba(238, 238, 229, 0.10);
    color: var(--vd-faint);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    transition: background-color .25s ease, color .25s ease;
}

#vd-tabs .vd-steps .vd-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    opacity: .8;
}

#vd-tabs .vd-steps .vd-step-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* aktív lépés */
#vd-tabs .ui-tabs-nav li.ui-tabs-active {
    border-bottom: none;
}

#vd-tabs .vd-steps > li.ui-tabs-active a {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--vd-clay-bright), var(--vd-clay-deep));
    box-shadow: 0 12px 26px -12px rgba(179, 67, 37, 0.9);
    transform: none;
}

#vd-tabs .vd-steps > li.ui-tabs-active .vd-step-index {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

#vd-tabs .vd-steps > li.ui-tabs-active .vd-icon {
    opacity: 1;
}

/* már beállított (korábbi) lépések */
#vd-tabs .vd-steps > li.vd-step-done a {
    border-color: rgba(199, 185, 141, 0.42);
    color: var(--vd-sand);
}

#vd-tabs .vd-steps > li.vd-step-done .vd-step-index {
    background: rgba(199, 185, 141, 0.2);
    color: var(--vd-sand);
}

/* ==========================================================================
   Elrendezés
   ========================================================================== */
.vd-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--vd-gap);
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 1080px) {
    .vd-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    }
}

.vd-side {
    min-width: 0;
    margin: 0;
    flex: none;
    max-width: none;
    width: auto;
}

@media (min-width: 1080px) {
    .vd-side.vd-right {
        position: sticky;
        top: 24px;
    }
}

/* mobilon a 3D nézet kerül előre, és görgetés közben is látszik */
@media (max-width: 1079px) {
    /* flex oszlop, hogy a ragadós 3D nézet a teljes szakaszon együtt görögjön */
    .vd-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .vd-side.vd-right {
        display: contents;
    }

    .vd-container .vd-viewer {
        order: -1;
        position: sticky;
        top: 8px;
        z-index: 4;
    }

    .vd-container .vd-summary {
        order: 1;
        margin-top: 0;
    }
}

/* ==========================================================================
   Konfigurátor panel
   ========================================================================== */
.vd-panels {
    position: relative;
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--vd-shadow);
    padding: clamp(20px, 2.6vw, 34px);
}

.vd-panel-head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--vd-line);
}

.vd-panel-head h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    font-weight: 500;
    text-transform: none;
}

.vd-panel-head p {
    margin-top: 6px;
    color: var(--vd-faint);
    font-size: 0.86rem;
    line-height: 1.5;
}

.vd-panel-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
}

@media (max-width: 560px) {
    .vd-panel-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* régi oldaltartalom: a panel maga a mezőrács */
.vd-panel-legacy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 18px;
}

@media (max-width: 560px) {
    .vd-panel-legacy {
        grid-template-columns: minmax(0, 1fr);
    }
}

.vd-panel-legacy > label,
.vd-panel-legacy > .vd-form-input,
.vd-panel-legacy > .vd-note {
    grid-column: 1 / -1;
}

/* mezők alapból teljes szélesség, a rövidek párban állnak */
.vd-field {
    grid-column: 1 / -1;
    min-width: 0;
}

.vd-field[data-field="width"],
.vd-field[data-field="depth"],
.vd-field[data-field="frontRoof"],
.vd-field[data-field="backRoof"],
.vd-field[data-field="rightRoof"],
.vd-field[data-field="leftRoof"],
.vd-field[data-field="gutters"],
.vd-field[data-field="guttersColor"],
.vd-field[data-field="roofType"],
.vd-field[data-field="roof"],
.vd-field[data-field="doorMaterial"],
.vd-field[data-field="doorClose"],
.vd-field[data-field="windowFrontRight"],
.vd-field[data-field="windowFrontLeft"],
.vd-field[data-field="windowRight"],
.vd-field[data-field="windowLeft"],
.vd-field[data-field="transfer"],
.vd-field[data-field="delivery"] {
    grid-column: span 1;
}

@media (max-width: 560px) {
    .vd-field {
        grid-column: 1 / -1 !important;
    }
}

.vd-field-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    padding: 0;
    line-height: 1.35;
    color: var(--vd-sand);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vd-description {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    position: relative;
    top: 0;
    border: 1px solid rgba(199, 185, 141, 0.5);
    border-radius: 50%;
    background-image: none;
    color: var(--vd-sand);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.vd-description::before {
    content: "i";
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1;
}

.vd-description:hover,
.vd-description:focus {
    background: var(--vd-sand);
    border-color: var(--vd-sand);
    color: #1a1c1e;
}

/* --- vezérlők ------------------------------------------------------------- */
#vd-tabs .vd-form-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius-sm);
    background: rgba(10, 13, 10, 0.5);
    color: var(--vd-text);
    font-size: 0.95rem;
    line-height: 1.35;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#vd-tabs .vd-form-input:hover {
    border-color: var(--vd-line-strong);
}

#vd-tabs .vd-form-input:focus {
    outline: none;
    border-color: var(--vd-sand);
    background: rgba(10, 13, 10, 0.75);
    box-shadow: 0 0 0 3px rgba(199, 185, 141, 0.18);
}

/* select */
.vd-select {
    position: relative;
}

#vd-tabs .vd-form-input.vd-form-input-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

#vd-tabs .vd-form-input-select option {
    background: #1b211b;
    color: #eeeee5;
}

#vd-tabs .vd-form-input-select option:disabled {
    color: rgba(238, 238, 229, 0.35);
}

.vd-select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border-right: 2px solid var(--vd-sand);
    border-bottom: 2px solid var(--vd-sand);
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform .2s ease;
}

.vd-select:hover .vd-select-arrow {
    transform: rotate(45deg) translate(1px, 1px);
}

/* szám mező + / − */
.vd-number {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--vd-line);
    border-radius: 999px;
    background: rgba(10, 13, 10, 0.5);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.vd-number:focus-within {
    border-color: var(--vd-sand);
    box-shadow: 0 0 0 3px rgba(199, 185, 141, 0.18);
}

#vd-tabs .vd-number-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: rgba(238, 238, 229, 0.08);
    color: var(--vd-text);
    font-size: 1.05rem;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

#vd-tabs .vd-number-step:hover {
    background: var(--vd-clay);
    color: #fff;
}

#vd-tabs .vd-number-step:active {
    transform: scale(0.92);
}

.vd-number-value {
    flex: 1 1 auto;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

#vd-tabs .vd-form-input.vd-form-input-number {
    -moz-appearance: textfield;
    width: auto;
    max-width: 5.5ch;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: right;
    font-size: 1.22rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

#vd-tabs .vd-form-input.vd-form-input-number:focus {
    box-shadow: none;
    background: none;
}

#vd-tabs .vd-form-input-number::-webkit-outer-spin-button,
#vd-tabs .vd-form-input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vd-number-unit {
    color: var(--vd-faint);
    font-size: 0.8rem;
    font-weight: 500;
}

/* csúszka */
#vd-tabs .vd-range {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 4px;
    margin: 16px 0 6px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(238, 238, 229, 0.14);
    background-image: linear-gradient(var(--vd-clay), var(--vd-clay));
    background-repeat: no-repeat;
    background-size: var(--vd-range-fill, 0%) 100%;
    cursor: pointer;
}

#vd-tabs .vd-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 3px solid var(--vd-clay);
    border-radius: 50%;
    background: #f6f4ec;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform .15s ease;
}

#vd-tabs .vd-range::-webkit-slider-thumb:hover {
    transform: scale(1.14);
}

#vd-tabs .vd-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 3px solid var(--vd-clay);
    border-radius: 50%;
    background: #f6f4ec;
}

#vd-tabs .vd-range::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(238, 238, 229, 0.14);
}

.vd-range-scale {
    display: flex;
    justify-content: space-between;
    color: var(--vd-faint);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

/* színminták */
.vd-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.vd-swatches:empty {
    display: none;
}

#vd-tabs .vd-swatch {
    position: relative;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background-color: #444;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform .18s ease, border-color .18s ease;
}

#vd-tabs .vd-swatch:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: var(--vd-line-strong);
}

#vd-tabs .vd-swatch.is-active {
    border-color: var(--vd-sand);
    transform: scale(1.06);
}

#vd-tabs .vd-swatch.is-disabled {
    opacity: .3;
    cursor: not-allowed;
}

#vd-tabs .vd-swatch.is-none::after,
#vd-tabs .vd-swatch.is-other::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 44%, rgba(238, 238, 229, 0.8) 46%, rgba(238, 238, 229, 0.8) 54%, transparent 56%);
}

#vd-tabs .vd-swatch.is-other {
    background-image: conic-gradient(from 210deg, #b34325, #c7b98d, #2a3f33, #6d7d55, #b34325);
}

#vd-tabs .vd-swatch.is-other::after {
    background: none;
}

/* ==========================================================================
   Előző / következő
   ========================================================================== */
.vd-action-button-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-top: 22px;
}

.vd-action-button {
    flex: 0 1 auto;
    padding-bottom: 0;
}

#vd-tabs .vd-ghost-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    padding: 12px 22px;
    border: 1px solid var(--vd-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--vd-text);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

#vd-tabs .vd-ghost-button:hover {
    background: rgba(238, 238, 229, 0.09);
    border-color: var(--vd-sand);
    color: #fff;
    transform: translateY(-1px);
}

#vd-tabs .vd-ghost-button .vd-icon {
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   3D nézet
   ========================================================================== */
.vd-viewer {
    position: relative;
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: var(--vd-shadow);
    padding: 10px;
}

#vd-canvas {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 11;
    border: none;
    border-radius: calc(var(--vd-radius-lg) - 10px);
    overflow: hidden;
    background: linear-gradient(180deg, #9dc4e4 0%, #cfe0ea 55%, #6f7f57 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
    cursor: grab;
}

#vd-canvas:active {
    cursor: grabbing;
}

#vd-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

@supports not (aspect-ratio: 1) {
    #vd-canvas {
        height: 62vh;
        max-height: 640px;
    }
}

@media (max-width: 1079px) {
    #vd-canvas {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 700px) {
    #vd-canvas {
        aspect-ratio: 3 / 2;
    }

    #vd-canvas .vd-canvas-views {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    #vd-canvas .vd-canvas-views::-webkit-scrollbar {
        display: none;
    }

    #vd-tabs .vd-view-button {
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 0.62rem;
    }
}

/* nézőpont választó */
.vd-canvas-views {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#vd-tabs .vd-view-button {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(12, 16, 12, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

#vd-tabs .vd-view-button:hover {
    background: rgba(12, 16, 12, 0.78);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

#vd-tabs .vd-view-button.is-active {
    background: var(--vd-clay);
    border-color: transparent;
    color: #fff;
}

/* eszközök */
.vd-canvas-tools {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#vd-tabs .vd-canvas-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(12, 16, 12, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    transition: background-color .2s ease, transform .15s ease, border-color .2s ease;
}

#vd-tabs .vd-canvas-tool:hover {
    background: rgba(12, 16, 12, 0.8);
    border-color: rgba(255, 255, 255, 0.42);
}

#vd-tabs .vd-canvas-tool:active {
    transform: scale(0.94);
}

#vd-tabs .vd-canvas-tool.is-active {
    background: var(--vd-clay);
    border-color: transparent;
}

#vd-tabs .vd-canvas-tool .vd-icon {
    width: 17px;
    height: 17px;
}

/* 360° jelzés + tipp */
#vd-canvas .vd-navigation-info {
    display: none;
}

.vd-canvas-hint {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(12, 16, 12, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    pointer-events: none;
    transition: opacity .5s ease, transform .5s ease;
}

.vd-canvas-hint .vd-icon {
    width: 14px;
    height: 14px;
}

#vd-canvas.is-touched .vd-canvas-hint {
    opacity: 0;
    transform: translateY(6px);
}

@media (max-width: 700px) {
    .vd-canvas-hint span {
        display: none;
    }

    .vd-canvas-hint {
        padding: 8px;
    }
}

/* betöltés */
.vd-canvas-loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(12, 16, 12, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: var(--vd-paper);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity .5s ease, visibility .5s ease;
}

.vd-canvas-loader span {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(238, 238, 229, 0.2);
    border-top-color: var(--vd-clay);
    border-radius: 50%;
    animation: vd-spin 0.9s linear infinite;
}

.vd-canvas-loader em {
    font-style: normal;
}

#vd-canvas.is-ready .vd-canvas-loader {
    opacity: 0;
    visibility: hidden;
}

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

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

/* ==========================================================================
   Ár és ajánlatkérés
   ========================================================================== */
.vd-summary {
    margin-top: var(--vd-gap);
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid var(--vd-line);
    border-radius: var(--vd-radius-lg);
    background:
        radial-gradient(120% 130% at 100% 0%, rgba(179, 67, 37, 0.18) 0%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: var(--vd-shadow);
}

#vd-calculation {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
}

#vd-calculation .vd-price-label,
#vd-calculation span:first-child {
    margin-right: 0;
    color: var(--vd-sand);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vd-price-figure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 2.6rem;
}

#vd-calculation-result {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#vd-calculation-result.is-updated {
    animation: vd-price-pop .45s ease;
}

@keyframes vd-price-pop {
    0% {
        transform: scale(1);
        color: var(--vd-text);
    }
    40% {
        transform: scale(1.05);
        color: var(--vd-sand);
    }
    100% {
        transform: scale(1);
        color: var(--vd-text);
    }
}

#vd-calculation-progress {
    display: inline-block;
    width: 1.05em;
    height: 1.05em;
    border: 0.16em solid rgba(238, 238, 229, 0.2);
    border-top-color: var(--vd-clay);
    border-radius: 50%;
    animation: vd-spin 0.8s linear infinite;
}

.vd-note {
    display: block;
    margin: 10px 0 0;
    color: var(--vd-faint);
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.5;
}

.vd-summary .vd-action-button-container {
    padding-top: 18px;
}

.vd-summary .vd-action-button {
    flex: 1 1 100%;
}

#vd-tabs .vd-form-submit {
    display: block;
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--vd-clay-bright), var(--vd-clay-deep));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 18px 34px -16px rgba(179, 67, 37, 0.95);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

#vd-tabs .vd-form-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 24px 40px -16px rgba(179, 67, 37, 1);
}

#vd-tabs .vd-form-submit:active {
    transform: translateY(0);
}

.vd-usp {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--vd-line);
}

.vd-usp li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--vd-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.vd-usp .vd-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: var(--vd-sand);
}

/* ==========================================================================
   Mobil művelet sáv
   ========================================================================== */
@media (max-width: 780px) {
    .vd-summary {
        display: flex;
        flex-direction: column;
    }

    .vd-summary .vd-usp {
        order: 1;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .vd-summary .vd-note {
        order: 2;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid var(--vd-line);
    }

    .vd-summary .vd-action-button-container {
        display: none;
    }
}

.vd-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--vd-line);
    background: rgba(12, 16, 12, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.55);
    transform: translateY(110%);
    transition: transform .35s ease;
}

.vd-mobile-bar.is-visible {
    transform: translateY(0);
}

.vd-mobile-bar #vd-calculation {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
}

.vd-mobile-bar #vd-calculation .vd-price-label {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

.vd-mobile-bar #vd-calculation-result {
    font-size: 1.15rem;
}

.vd-mobile-bar .vd-price-figure {
    min-height: 0;
}

.vd-mobile-bar #vd-submit {
    width: auto;
    flex: 0 0 auto;
    padding: 14px 22px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

/* ==========================================================================
   Tooltip (jQuery UI)
   ========================================================================== */
.ui-tooltip,
.ui-tooltip-arrow:after {
    background: #1b211b;
    border: 1px solid rgba(199, 185, 141, 0.45);
}

.ui-tooltip {
    padding: 14px 18px;
    color: #eeeee5;
    border-radius: 16px;
    font: 400 0.82rem/1.55 inherit;
    box-shadow: 0 22px 46px -18px rgba(0, 0, 0, 0.9);
    position: absolute;
    z-index: 9999;
    max-width: 30vw;
}

@media only screen and (orientation: portrait) {
    .ui-tooltip {
        max-width: 80vw;
    }
}

.ui-tooltip-arrow {
    width: 70px;
    height: 16px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    margin-left: -35px;
    bottom: -16px;
}

.ui-tooltip-arrow.ui-tooltip-arrow-top {
    top: -16px;
    bottom: auto;
}

.ui-tooltip-arrow.ui-tooltip-arrow-left {
    left: 20%;
}

.ui-tooltip-arrow:after {
    content: "";
    position: absolute;
    left: 20px;
    top: -20px;
    width: 25px;
    height: 25px;
    box-shadow: 6px 5px 9px -9px black;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.ui-tooltip-arrow.ui-tooltip-arrow-top:after {
    bottom: -20px;
    top: auto;
}

/* ==========================================================================
   Ajánlatkérő ablak (jQuery UI dialog)
   ========================================================================== */
.ui-widget-overlay {
    background: rgba(8, 10, 8, 0.72) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ui-dialog {
    --vd-clay: #b34325;
    --vd-sand: #c7b98d;
    --vd-line: rgba(238, 238, 229, 0.14);
    padding: 0;
    border: 1px solid rgba(238, 238, 229, 0.16);
    border-radius: 26px;
    background: linear-gradient(180deg, #1f261f 0%, #161b16 100%);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
    max-width: calc(100vw - 32px);
    overflow: hidden;
}

.ui-dialog .ui-dialog-titlebar {
    padding: 0;
    border: none;
    background: none;
    min-height: 0;
}

.ui-dialog .ui-dialog-title {
    display: none;
}

.ui-dialog .ui-dialog-titlebar-close {
    font-size: 0;
    line-height: 0;
    text-indent: -999px;
    overflow: hidden;
    position: absolute;
    top: 18px;
    right: 18px;
    left: auto;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(238, 238, 229, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #eeeee5;
    z-index: 5;
    transition: background-color .2s ease, transform .2s ease;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: rotate(90deg);
}

.ui-dialog .ui-dialog-titlebar-close::before,
.ui-dialog .ui-dialog-titlebar-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    margin: -1px 0 0 -7px;
    background: #eeeee5;
    text-indent: 0;
}

.ui-dialog .ui-dialog-titlebar-close::before {
    transform: rotate(45deg);
}

.ui-dialog .ui-dialog-titlebar-close::after {
    transform: rotate(-45deg);
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space,
.ui-dialog .ui-dialog-titlebar-close .ui-button-text {
    display: none;
}

.ui-dialog .ui-dialog-content,
.ui-dialog .ui-dialog-buttonpane {
    color: #eeeee5;
    background: none;
    border: none;
}

.ui-dialog .ui-dialog-content {
    padding: clamp(26px, 4vw, 38px) clamp(22px, 3.5vw, 38px) 6px;
    overflow: visible;
}

.vd-dialog-head {
    margin-bottom: 22px;
}

.vd-dialog-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--vd-sand);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ui-dialog .vd-dialog-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 1.6rem);
    font-weight: 500;
    line-height: 1.2;
}

.ui-dialog .vd-dialog-lead {
    margin: 0;
    color: rgba(238, 238, 229, 0.62);
    font-size: 0.85rem;
    line-height: 1.55;
}

.vd-dialog-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.ui-dialog .vd-form-input {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    grid-column: 1 / -1;
    border: 1px solid rgba(238, 238, 229, 0.16);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    color: #eeeee5;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.ui-dialog .vd-form-input::placeholder {
    color: rgba(238, 238, 229, 0.42);
}

.ui-dialog .vd-form-input:focus {
    outline: none;
    border-color: var(--vd-sand);
    background: rgba(0, 0, 0, 0.42);
    box-shadow: 0 0 0 3px rgba(199, 185, 141, 0.16);
}

#vd-dialog-form-email,
#vd-dialog-form-phone,
#vd-dialog-form-postcode,
#vd-dialog-form-city {
    grid-column: span 1;
}

@media (max-width: 520px) {
    .vd-dialog-form {
        grid-template-columns: minmax(0, 1fr);
    }

    #vd-dialog-form-email,
    #vd-dialog-form-phone,
    #vd-dialog-form-postcode,
    #vd-dialog-form-city {
        grid-column: 1 / -1;
    }
}

.ui-dialog .vd-form-input-textarea {
    height: 6.5rem;
    resize: vertical;
}

.vd-dialog-terms {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 2px 0 0;
    color: rgba(238, 238, 229, 0.72);
    font-size: 0.8rem;
    line-height: 1.5;
    cursor: pointer;
}

.ui-dialog .ui-dialog-content a {
    color: var(--vd-sand);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s linear;
}

.ui-dialog .ui-dialog-content a:hover {
    color: #fff;
}

.ui-dialog input[type="checkbox"].vd-form-input-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    top: 2px;
    display: inline-block;
    flex: 0 0 20px;
    margin: 0;
    width: 20px;
    min-width: 20px;
    height: 20px;
    border: 1px solid rgba(238, 238, 229, 0.35);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.ui-dialog input[type="checkbox"].vd-form-input-checkbox:checked {
    background: var(--vd-clay);
    border-color: var(--vd-clay);
}

.ui-dialog input[type="checkbox"].vd-form-input-checkbox:checked::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 6.5px;
    width: 5px;
    height: 10px;
    margin: 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(43deg);
}

.ui-dialog-content input.ui-state-error,
.ui-dialog .ui-dialog-content input[type="checkbox"].vd-form-input-checkbox.ui-state-error {
    border-color: #e2725b;
    background: rgba(226, 114, 91, 0.12);
    color: #ffd9d0;
}

.ui-dialog-content .vd-dialog-progress-indicator {
    display: none;
}

.vd-loading.ui-dialog-content .vd-dialog-progress-indicator {
    grid-column: 1 / -1;
    display: block;
    width: 26px;
    height: 26px;
    margin: 6px auto 0;
    border: 2px solid rgba(238, 238, 229, 0.2);
    border-top-color: var(--vd-clay);
    border-radius: 50%;
    animation: vd-spin 0.8s linear infinite;
    float: none;
}

.ui-dialog .ui-dialog-buttonpane {
    margin: 0;
    padding: 18px clamp(22px, 3.5vw, 38px) clamp(26px, 3.5vw, 34px);
}

.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: none;
    display: block;
}

.ui-dialog .ui-dialog-buttonpane button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 17px 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #d05a37, #8d3319);
    color: #fff;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    height: auto;
    cursor: pointer;
    box-shadow: 0 18px 34px -16px rgba(179, 67, 37, 0.95);
    transition: transform .2s ease, filter .2s ease;
}

.ui-dialog .ui-dialog-buttonpane button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}

.no-close .ui-dialog-titlebar-close {
    display: none;
}

/* ==========================================================================
   Panelváltás animáció
   ========================================================================== */
.vd-panel.vd-panel-enter {
    animation: vd-panel-in .38s ease both;
}

@keyframes vd-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #vd-tabs *,
    .ui-dialog * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   Teljes képernyős oldalsablon (templates/fullscreen.php)
   ========================================================================== */
body.vd-fullscreen {
    margin: 0;
    background: #0c0e0b;
}

.vd-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 28px);
    padding: 10px clamp(14px, 3vw, 34px);
    border-bottom: 1px solid rgba(238, 238, 229, 0.12);
    background: rgba(10, 13, 10, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

body.admin-bar .vd-topbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .vd-topbar {
        top: 46px;
    }
}

.vd-topbar-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.vd-topbar-logo img {
    display: block;
    width: auto;
    height: clamp(30px, 4vw, 42px);
}

.vd-topbar-brand {
    color: #eeeee5;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vd-topbar-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.vd-topbar-nav::-webkit-scrollbar {
    display: none;
}

.vd-topbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vd-topbar-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vd-topbar-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(238, 238, 229, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.vd-topbar-menu a:hover,
.vd-topbar-menu .current-menu-item > a,
.vd-topbar-menu .current_page_item > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.vd-topbar-back {
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 1px solid rgba(199, 185, 141, 0.4);
    border-radius: 999px;
    color: #c7b98d;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.vd-topbar-back:hover {
    background: rgba(199, 185, 141, 0.14);
    color: #fff;
}

@media (max-width: 900px) {
    .vd-topbar-back {
        display: none;
    }
}

.vd-fullscreen-main #vd-tabs {
    min-height: calc(100vh - 64px);
}
