
* {
    box-sizing: border-box;
}

.designer-page {
    background: #f4f7fb;
    color: #10233f;
    padding: 28px 16px 50px;
}

.designer-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.designer-intro {
    text-align: center;
    margin-bottom: 26px;
}

.designer-intro h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #071d3a;
}

.designer-intro p {
    margin: 0 auto;
    max-width: 760px;
    color: #4a5d74;
    line-height: 1.6;
}

.step-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(7, 29, 58, .08);
    padding: 24px;
    margin-bottom: 20px;
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f57c00;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.step-heading h2 {
    margin: 0;
    color: #071d3a;
    font-size: 1.45rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.field {
    grid-column: span 4;
}

.field.half {
    grid-column: span 6;
}

.field.full {
    grid-column: 1/-1;
}

.field label,
.editor-grid label {
    display: block;
    font-weight: 700;
    color: #20364f;
}

.field label {
    margin-bottom: 7px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #c8d2df;
    border-radius: 8px;
    background: #fff;
    color: #10233f;
    font: inherit;
}

textarea {
    min-height: 105px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(245, 124, 0, .18);
    border-color: #f57c00;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.choice {
    border: 1px solid #c8d2df;
    border-radius: 10px;
    background: #f9fbfd;
    padding: 12px;
}

.choice label {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
}

.choice input {
    width: auto;
}

.designer-toolbar,
.elevation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.designer-toolbar {
    margin-bottom: 16px;
}

.tool-btn,
.elevation-tab,
.nudge-row button,
.delete-opening {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.tool-btn {
    color: #fff;
    background: #20364f;
}

.tool-btn.roller {
    background: #f57c00;
}

.tool-btn.pa {
    background: #0d5d8c;
}

.tool-btn.window {
    background: #2f7b57;
}

.tool-btn.sliding {
    background: #7652a7;
}

.elevation-tabs {
    margin-bottom: 14px;
}

.elevation-tab {
    background: #dfe7f0;
    color: #20364f;
}

.elevation-tab.active {
    background: #071d3a;
    color: #fff;
}

.elevation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.drawing-panel,
.opening-editor {
    border: 1px solid #d3dde8;
    border-radius: 12px;
    background: #fbfdff;
}

.drawing-panel,
.opening-editor {
    padding: 16px;
}

.drawing-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #20364f;
}

#shedSvg {
    width: 100%;
    height: auto;
  
    display: block;
    border: 1px solid #d5deea;
    border-radius: 8px;
    background: #fff;
    touch-action: pan-y;
}



.svg-bg {
    fill: #fff;
}

.shed-wall {
    fill: #f5f7f9;
    stroke: #132d4b;
    stroke-width: 5;
}

.shed-roof {
    fill: none;
    stroke: #132d4b;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.floor-line {
    stroke: #566b80;
    stroke-width: 3;
}

.dim-line {
    stroke: #8292a4;
    stroke-width: 2;
}

.dim-text {
    fill: #536679;
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
}

.opening {
    cursor: pointer;
    stroke-width: 4;
}

.opening.roller {
    fill: #d9e0e7;
    stroke: #f57c00;
}

.opening.pa {
    fill: #e5edf4;
    stroke: #0d5d8c;
}

.opening.window {
    fill: #cfe6f3;
    stroke: #2f7b57;
}

.opening.sliding {
    fill: #d9d3eb;
    stroke: #7652a7;
}

.opening.selected {
    stroke: #d31818;
    stroke-width: 7;
}

.opening-label {
    pointer-events: none;
    fill: #132d4b;
    font-size: 18px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.drawing-help,
.empty-selection,
.opening-summary {
    color: #607287;
    line-height: 1.5;
}

.opening-editor h3,
.opening-summary h3 {
    margin-top: 0;
    color: #071d3a;
}

.selected-name {
    margin-bottom: 12px;
    font-weight: 800;
    color: #f57c00;
}

.editor-grid {
    display: grid;
    gap: 12px;
}

.editor-grid label {
    font-size: .9rem;
}

.editor-grid input {
    margin-top: 5px;
}

.nudge-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.nudge-row button {
    flex: 1;
    background: #e6edf5;
    color: #20364f;
}

.delete-opening {
    width: 100%;
    margin-top: 14px;
    background: #a62929;
    color: #fff;
}

.opening-summary {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: #f7f9fc;
    border: 1px solid #d7e0ea;
}

.opening-summary ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.submit-area {
    text-align: center;
    margin-top: 22px;
}

.submit-btn {
    border: 0;
    border-radius: 10px;
    padding: 15px 30px;
    background: #f57c00;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.submit-btn:hover {
    background: #df6f00;
}

.fine-print {
    max-width: 760px;
    margin: 12px auto 0;
    color: #6d7d90;
    font-size: .9rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .elevation-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .field,
    .field.half {
        grid-column: 1/-1;
    }

    .step-card {
        padding: 18px;
    }

    .designer-toolbar .tool-btn {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 520px) {
    .designer-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .step-card {
        padding: 16px;
    }

    .designer-toolbar .tool-btn {
        flex-basis: 100%;
    }

    .elevation-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .drawing-panel {
        padding: 10px;
    }

    .dim-text {
        font-size: 18px;
    }
}

/* =========================================================
   ELEVATION BUTTON PREVIEWS
========================================================= */

.elevation-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.elevation-preview {
    display: block;
    width: 90px;
    height: 52px;
    overflow: visible;
    pointer-events: none;
}

.elevation-preview .preview-wall {
    fill: rgba(255, 255, 255, 0.08);
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.elevation-preview .preview-roof {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.elevation-preview .preview-floor {
    stroke: currentColor;
    stroke-width: 1.5;
    opacity: 0.45;
}

.elevation-tab span {
    display: block;
}

.quote-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.quote-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.submit-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ==============================
   SHED DESIGN GUIDE LINK
   ============================== */

.shed-guide-link {
    text-align: center;
    margin: 10px 0 20px;
}

.shed-guide-link a {
    display: inline-block;
    padding: 9px 16px;
    border: 2px solid #f57c00;
    border-radius: 8px;
    background: #fff;
    color: #0b2341;
    font-weight: 700;
    text-decoration: none;
}

.shed-guide-link a:hover {
    background: #f57c00;
    color: #fff;
}

/* Shed guide button - mobile */
@media (max-width: 600px) {

    .shed-guide-link {
        margin: 14px 16px 20px;
    }

    .shed-guide-link a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 13px 12px;
        font-size: 15px;
        line-height: 1.3;
        text-align: center;
    }
}

.move-opening-label {
  text-align: center;
  width: 100%;
}

.selected-opening-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 16px;
}

.selected-opening-top .selected-name {
    margin: 0;
    font-weight: 700;
}

.selected-opening-top .delete-opening {
    width: auto;
    min-width: 130px;
    margin: 0;
    padding: 9px 14px;
    flex-shrink: 0;
}

/* Red box around movement controls */
#drawingMovementControls {
    border: 3px solid red;
    border-radius: 10px;
    padding: 8px;
    box-sizing: border-box;
}

