﻿:root {
    --ink: #0E0D0C;
    --ivory: #FBF6EC;
    --ivory-deep: #F2E9D8;
    --gold: #C8A045; /* decorative: borders, dividers, icons, thread — used on dark or as hairline */
    --gold-deep: #8A6A1E; /* text-safe gold: buttons, required marks, links on ivory */
    --gold-soft: #F1E4C2; /* selected tint background */
    --teal: #6FA89F; /* decorative fills, matches logo monogram */
    --teal-deep: #2C5C55; /* text-safe teal: eyebrows, checks, links */
    --teal-soft: #E1EEEC;
    --text: #2A241C;
    --text-soft: #6E6457;
    --border: #E4D8BD;
    --danger: #A6453B;
    --radius-lg: 20px;
    --radius-md: 10px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Jost',sans-serif;
    color: var(--text);
    min-height: 100vh;
    background: #fff;
}

/* ============================================================
       DEMO PAGE — stand-in for your real website. Only here so you
       can see the popup in context. Safe to delete / ignore: it is
       NOT part of the popup itself.
    ============================================================ */
.demo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    background: var(--ink);
}

.demo-nav-brand {
    color: var(--ivory);
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 500;
}

.demo-hero {
    padding: 90px 24px;
    text-align: center;
    background: var(--ivory-deep);
}

    .demo-hero h1 {
        font-family: 'Cormorant Garamond',serif;
        font-size: 32px;
        color: var(--text);
        margin: 0 0 10px;
    }

    .demo-hero p {
        color: var(--text-soft);
        font-size: 14px;
        margin: 0 0 26px;
    }

/* ============================================================
       TRIGGER BUTTON — this is the real "Create Enquiry" button.
       Copy this class (or just the onclick) onto your own button.
    ============================================================ */
.iwp-trigger-btn {
    background: var(--gold-deep);
    color: #fff;
    border: 1px solid var(--gold-deep);
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Jost',sans-serif;
}

    .iwp-trigger-btn:hover {
        background: #74591A;
    }

/* ============================================================
       POPUP — copy everything below (CSS + the modal HTML block +
       the JS at the bottom of the page) into your own site.
    ============================================================ */
.iwp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(14,13,12,0.74);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .iwp-modal-overlay.open {
        display: flex;
    }

body.iwp-modal-lock {
    overflow: hidden;
}

.page-wrap {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.card {
    position: relative;
    background: var(--ivory);
    border-radius: var(--radius-lg);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 92vh;
    border: 1px solid rgba(200,160,69,0.35);
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}

.iwp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--ivory);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Jost',sans-serif;
    transition: background .15s ease;
}

    .iwp-modal-close:hover {
        background: rgba(255,255,255,0.22);
    }

/* ---- Brand header (black band, mirrors logo backdrop) ---- */
.brand-header {
    background: var(--ink);
    padding: 30px 24px 24px;
    text-align: center;
    position: relative;
}

    .brand-header::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse 300px 150px at 50% 0%, rgba(200,160,69,0.25), transparent 70%);
    }

.brand-logo {
    width: 128px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    position: relative;
    z-index: 1;
}

.brand-tagline {
    position: relative;
    z-index: 1;
    font-size: 11px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

/* ---- Body padding area ---- */
.body-pad {
    padding: 26px 24px 22px;
}

.headline {
    font-family: 'Cormorant Garamond',serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 6px;
    color: var(--text);
}

    .headline em {
        font-style: italic;
        color: var(--teal-deep);
        font-weight: 500;
    }

.sub {
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 14px;
}

.timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--text-soft);
    margin-bottom: 6px;
}

    .timer svg {
        width: 13px;
        height: 13px;
        color: var(--teal-deep);
        flex-shrink: 0;
    }

/* ---- Signature progress thread ---- */
.progress-thread {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 22px 2px 28px;
    height: 38px;
}

.thread-track {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 24px;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.thread-fill {
    position: absolute;
    left: 12px;
    top: 24px;
    height: 1px;
    background: linear-gradient(90deg,var(--gold-deep),var(--gold));
    z-index: 1;
    transition: width .4s ease;
}

.node-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.flourish {
    width: 20px;
    height: 9px;
    opacity: 0;
    transition: opacity .3s ease;
}

.node-wrap.active .flourish {
    opacity: 1;
}

.node {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ivory);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-soft);
    transition: all .25s ease;
}

.node-wrap.active .node {
    border-color: var(--gold-deep);
    background: var(--gold-soft);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(200,160,69,0.18);
}

.node-wrap.done .node {
    border-color: var(--teal-deep);
    background: var(--teal-deep);
    color: #fff;
}

/* ---- Steps ---- */
[data-step] {
    display: none;
}

    [data-step].show {
        display: block;
    }

.step-meta {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--teal-deep);
    font-weight: 600;
    margin-bottom: 4px;
}

.step-title {
    font-family: 'Cormorant Garamond',serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.form-alert {
    display: none;
    background: #F6E6E3;
    border: 1px solid var(--danger);
    color: var(--danger);
    font-size: 12.5px;
    padding: 9px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

    .form-alert.show {
        display: block;
    }

.field {
    margin-bottom: 14px;
}

    .field > label {
        display: block;
        font-size: 13px;
        color: var(--text-soft);
        margin-bottom: 6px;
    }

        .field > label .req {
            color: var(--gold-deep);
            margin-left: 2px;
        }

.hint {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 12px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
    width: 100%;
    font-family: 'Jost',sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    transition: border-color .15s ease;
}

textarea {
    resize: vertical;
}

    input:focus, select:focus, textarea:focus {
        outline: none;
        border-color: var(--gold-deep);
    }

input.invalid, select.invalid {
    border-color: var(--danger);
}

:focus-visible {
    outline: 2px solid var(--teal-deep);
    outline-offset: 2px;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.row-date {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 10px;
}

.row-phone {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 8px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(135px,1fr));
    gap: 8px;
}

    .choice-grid.invalid {
        outline: 1px solid var(--danger);
        border-radius: 10px;
        padding: 4px;
    }

.choice {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px 12px;
    cursor: pointer;
    background: #fff;
    transition: all .15s ease;
}

    .choice:hover {
        border-color: var(--gold);
    }

    .choice.selected {
        border-color: var(--gold-deep);
        background: var(--gold-soft);
    }

.choice-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.choice-sub {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 2px;
}

.choice-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    color: var(--teal-deep);
    opacity: 0;
    transition: opacity .15s;
}

.choice.selected .choice-check {
    opacity: 1;
}

.budget-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    cursor: pointer;
    background: #fff;
    margin-bottom: 8px;
    transition: all .15s ease;
}

    .budget-card:hover {
        border-color: var(--gold);
    }

    .budget-card.selected {
        border-color: var(--gold-deep);
        background: var(--gold-soft);
    }

.budget-tier {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.budget-range {
    font-size: 13px;
    color: var(--text-soft);
}

.budget-note {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 2px;
}

.budget-card .choice-check {
    top: 13px;
    right: 14px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-soft);
    margin-top: 8px;
}

    .check-row input {
        width: auto;
        accent-color: var(--gold-deep);
    }

.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
    gap: 12px;
}

.btn-primary {
    background: var(--gold-deep);
    color: #fff;
    border: 1px solid var(--gold-deep);
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Jost',sans-serif;
    transition: background .15s ease;
}

    .btn-primary:hover {
        background: #74591A;
    }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    font-family: 'Jost',sans-serif;
}

    .btn-ghost:hover {
        border-color: var(--gold-deep);
    }

.assurance {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 11.5px;
    color: var(--text-soft);
}

    .assurance svg {
        width: 13px;
        height: 13px;
        color: var(--teal-deep);
        flex-shrink: 0;
    }

/* ---- Thank you step ---- */
.thanks-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 16px;
}

    .thanks-icon svg {
        width: 26px;
        height: 26px;
        color: var(--teal-deep);
    }

.thanks-title {
    font-family: 'Cormorant Garamond',serif;
    font-size: 23px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text);
}

.thanks-sub {
    font-size: 13.5px;
    text-align: center;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 18px;
}

.next-steps {
    background: var(--ivory-deep);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.next-step-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
}

    .next-step-row svg {
        width: 17px;
        height: 17px;
        color: var(--gold-deep);
        margin-top: 1px;
        flex-shrink: 0;
    }

    .next-step-row strong {
        font-weight: 600;
        color: var(--text);
        display: block;
        margin-bottom: 2px;
    }

    .next-step-row span {
        color: var(--text-soft);
    }

.direct-contact {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-soft);
}

    .direct-contact a {
        color: var(--teal-deep);
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid var(--teal-soft);
    }

@media (max-width:480px) {
    .row-2, .row-date {
        grid-template-columns: 1fr;
    }

    .body-pad {
        padding: 22px 18px 18px;
    }

    .brand-header {
        padding: 24px 18px 20px;
    }
}

@media (prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
    }
}

.iwp-trigger-btn {
    background: #8A6A1E;
    color: #fff;
    border: 1px solid #8A6A1E;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Jost',sans-serif;
    box-sizing: border-box;
}

.iwp-trigger-btn:hover {
    background: #74591A;
}
