.efci-configurator {
    --efci-text: #111111;
    --efci-muted: #687078;
    --efci-border: #c8cdd1;
    --efci-floor-top: #dedfdd;
    --efci-floor-front: #b7bbbc;
    --efci-steel-top: #485159;
    --efci-steel-front: #30373c;
    --efci-steel-side: #20262a;
    --efci-measure: #315b9d;
    --efci-background: #ffffff;
    box-sizing: border-box;
    color: var(--efci-text);
    display: grid;
    gap: 8px;
    width: min(1280px, calc(100vw - 48px));
    margin: 2rem 0 2.5rem 50% !important;
    transform: translateX(-50%);
}

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

.efci-configurator h2,
.efci-configurator p {
    margin-top: 0;
}

.efci-configurator h2 {
    margin-bottom: 0 !important;
    text-align: center;
}

.efci-intro {
    color: var(--efci-muted);
    margin-bottom: 4px !important;
    text-align: center;
}

.efci-main {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.55fr);
    gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
}

.efci-visual,
.efci-side {
    min-width: 0;
}

.efci-camera-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
    align-items: end;
}

.efci-camera-actions {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 0;
}

.efci-control,
.efci-field {
    display: grid;
    gap: 5px;
    margin: 0;
}

.efci-control > span,
.efci-field > span:first-child {
    font-size: 0.84rem;
    line-height: 1.3;
}

.efci-control input[type="range"] {
    width: 100%;
}

.efci-stage {
    width: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at 48% 48%, #eef0f1 0, rgba(238, 240, 241, 0) 66%);
}

.efci-drawing {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.efci-side {
    display: grid;
    gap: 11px;
    margin-top: 0;
}

.efci-field strong {
    font-weight: 600;
}

.efci-field .wpcf7-form-control-wrap {
    display: block;
}

.efci-field .wpcf7-number {
    display: block;
    width: 100% !important;
    min-height: 44px;
    margin: 0 !important;
}

.efci-results {
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border: 1px solid var(--efci-border);
    border-radius: 8px;
    background: #f5f6f6;
}

.efci-formula {
    color: var(--efci-muted);
    font-size: 0.78rem;
    text-align: right;
}

.efci-field-message {
    color: #b42318;
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
}

.efci-field-message:empty {
    display: none;
}

.efci-result {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.wpcf7 .efci-configurator .efci-continue {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #111111;
    border-radius: 6px;
    background: #111111;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.wpcf7 .efci-configurator .efci-continue:hover,
.wpcf7 .efci-configurator .efci-continue:focus-visible {
    background: #374047;
    border-color: #374047;
}

.wpcf7 .efci-configurator .efci-note {
    color: var(--efci-muted);
    font-size: 11px !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
}

.efci-wall {
    fill: url(#efci-wall);
    stroke: var(--efci-border);
    stroke-width: 1.2;
}

.efci-wall-edge {
    fill: #c8ccce;
    stroke: #aeb3b6;
    stroke-width: 1;
}

.efci-floor-top {
    fill: url(#efci-concrete-top);
    stroke: #9ea4a6;
    stroke-width: 1.25;
}

.efci-floor-side {
    fill: url(#efci-concrete-edge);
    stroke: #858c8f;
    stroke-width: 1.15;
}

.efci-floor-end {
    fill: #a9aeb0;
    stroke: #7f878a;
    stroke-width: 1.15;
}

.efci-floor-opening {
    fill: #9da3a5;
    stroke: #737b7e;
    stroke-width: 1.3;
}

.efci-floor-opening-line {
    fill: none;
    stroke: #626a6d;
    stroke-width: 1.7;
}

.efci-tread-top {
    fill: url(#efci-raw-top);
    stroke: #282f34;
    stroke-width: 0.9;
}

.efci-tread-front {
    fill: var(--efci-steel-front);
    stroke: #23292d;
    stroke-width: 0.8;
}

.efci-tread-side {
    fill: var(--efci-steel-side);
    stroke: #171c1f;
    stroke-width: 0.8;
}

.efci-measure {
    fill: none;
    marker-start: url(#efci-arrow-start);
    marker-end: url(#efci-arrow-end);
    stroke: var(--efci-measure);
    stroke-width: 2;
}

.efci-arrow-head {
    fill: var(--efci-measure);
}

.efci-guide {
    fill: none;
    stroke: rgba(49, 91, 157, 0.54);
    stroke-dasharray: 4 4;
    stroke-width: 1;
}

.efci-label-box {
    fill: var(--efci-background);
    stroke: #7d97bf;
    stroke-width: 1;
}

.efci-label {
    dominant-baseline: central;
    fill: var(--efci-text);
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
}

.efci-caption {
    fill: var(--efci-muted);
    font-size: 11px;
    font-weight: 600;
}

.efci-shadow {
    filter: url(#efci-shadow);
}

.efci-dimension {
    transition: opacity 140ms ease;
}

.efci-configurator.efci-active-height .efci-dimension:not(.efci-dimension-height),
.efci-configurator.efci-active-run .efci-dimension:not(.efci-dimension-run) {
    opacity: 0.12;
    pointer-events: none;
}

.efci-configurator.efci-active-height .efci-measure.efci-dimension-height,
.efci-configurator.efci-active-run .efci-measure.efci-dimension-run {
    stroke-width: 3;
}

.efci-one-page-form {
    box-sizing: border-box;
    width: min(1280px, calc(100vw - 48px));
    margin: 2rem 0 2.5rem 50%;
    transform: translateX(-50%);
}

.efci-one-page-form *,
.efci-one-page-form *::before,
.efci-one-page-form *::after {
    box-sizing: border-box;
}

.wpcf7 .efci-one-page-form .efci-configurator {
    width: 100%;
    margin: 0 !important;
    transform: none;
}

.efci-form-section {
    scroll-margin-top: 32px;
}

.efci-form-section-contact,
.efci-form-section-project {
    border-top: 1px solid var(--efci-border);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.efci-form-section h3 {
    margin: 0 0 0.75rem;
}

.efci-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.efci-contact-grid > p,
.efci-project-grid > p,
.efci-panel-actions > p {
    margin: 0 !important;
}

.efci-project-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 14px;
}

.efci-project-detail,
.efci-project-message {
    grid-column: span 3;
}

.efci-project-file {
    grid-column: span 2;
}

.efci-privacy {
    grid-column: 1 / -1;
    color: var(--efci-muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.efci-project-detail textarea,
.efci-project-message textarea {
    min-height: 92px;
}

.efci-panel-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
}

.wpcf7 .efci-one-page-form .efci-link-button,
.wpcf7 .efci-one-page-form .efci-action-button,
.wpcf7 .efci-one-page-form .wpcf7-submit {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1.2;
    cursor: pointer;
}

.wpcf7 .efci-one-page-form .efci-link-button {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--efci-muted);
}

.wpcf7 .efci-one-page-form .efci-link-button:hover,
.wpcf7 .efci-one-page-form .efci-link-button:focus-visible {
    color: var(--efci-text);
}

.wpcf7 .efci-one-page-form .efci-action-button,
.wpcf7 .efci-one-page-form .wpcf7-submit {
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
}

.wpcf7 .efci-one-page-form .efci-panel-actions .wpcf7-submit {
    min-width: 230px;
    min-height: 48px;
    padding: 12px 22px;
    font-size: 1.25rem;
    font-weight: 600;
}

.wpcf7 .efci-one-page-form .efci-action-button:hover,
.wpcf7 .efci-one-page-form .efci-action-button:focus-visible,
.wpcf7 .efci-one-page-form .wpcf7-submit:hover,
.wpcf7 .efci-one-page-form .wpcf7-submit:focus-visible {
    border-color: #374047;
    background: #374047;
}

@media (max-width: 980px) {
    .wpcf7 .efci-one-page-form {
        width: 100%;
        margin: 1.5rem 0 2rem;
        transform: none;
    }

    .wpcf7 .efci-configurator {
        width: 100%;
        margin: 1.5rem 0 2rem !important;
        transform: none;
    }

    .efci-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .efci-side {
        margin-top: 0;
    }
}

@media (max-width: 680px) {
    .efci-contact-grid,
    .efci-project-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .efci-project-detail,
    .efci-project-message,
    .efci-project-file,
    .efci-privacy {
        grid-column: 1;
    }

    .efci-panel-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .wpcf7 .efci-one-page-form .efci-link-button,
    .wpcf7 .efci-one-page-form .efci-action-button,
    .wpcf7 .efci-one-page-form .wpcf7-submit {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .efci-camera-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .efci-configurator {
        margin-top: 1.25rem !important;
    }
}
