/* ── Ribbon ── */
.bq-ribbon-wrap {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999998;
}
.bq-ribbon-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.bq-ribbon-close {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 15px #00000080;
    line-height: 1;
    padding: 0;
}
.bq-ribbon-btn {
    background: #2d6b4f;
    color: #fff;
    border: none;
    padding: 18px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: background .2s;
}
.bq-ribbon-btn:hover { background: #245a40; }

/* ── Modal ── */
.bq-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.bq-modal-overlay.open { display: flex; }
.bq-modal-box {
    position: relative;
    background: #f5f4f1;
    border-radius: 16px;
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.bq-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border: none;
    background: transparent;
    color: #555;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.bq-modal-close:hover { color: #000; }
.bq-modal-body { padding: 0 0 .75rem; }

/* ── Form root ── */
.gb-root { background: #f5f4f1; }
.gb-root * { box-sizing: border-box; }

/* ── Modal header ── */
.gb-modal-header {
    background: #1a1916;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 16px 16px 0 0;
}
.gb-modal-title {
    font-family: 'Georgia', serif;
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    font-style: italic;
    margin: 0 0 .35rem;
    line-height: 1.2;
}
.gb-modal-title em { font-style: normal; font-weight: 500; }
.gb-modal-sub {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    margin: 0 0 1rem;
    letter-spacing: .04em;
}
.gb-modal-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-pill {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.3);
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gb-pill-dot {
    width: 4px; height: 4px;
    background: #2d6b4f;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── Wrap / progress ── */
.wrap {
    max-width: 100%;
    padding: 1.25rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.prog-wrap { margin-bottom: 1.5rem; }
.prog-labels { display: flex; gap: 0; margin-bottom: 6px; }
.prog-lbl {
    font-size: 11px; font-weight: 500;
    color: #b0ada6; transition: color .3s;
    flex: 1; text-align: center;
    text-transform: uppercase; letter-spacing: .07em;
}
.prog-lbl:first-child { text-align: left; }
.prog-lbl:last-child  { text-align: right; }
.prog-lbl.active { color: #b8975a; font-weight: 700; }
.prog-lbl.done   { color: #8a8780; }
.prog-track { height: 5px; background: #e2e0da; border-radius: 10px; overflow: hidden; }
.prog-fill  { height: 100%; background: linear-gradient(90deg,#b8975a,#d4ae72); border-radius: 10px; transition: width .4s cubic-bezier(.4,0,.2,1); }

/* ── Steps ── */
.step-panel { display: none; animation: fadeUp .25s ease; }
.step-panel.active { display: block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.step-eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #b8975a; font-weight: 800; margin-bottom: .3rem; }
.step-heading { font-family: Georgia,serif; font-size: 20px; font-weight: 500; color: #1a1916; margin-bottom: 4px; line-height: 1.3; }
.step-sub { font-size: 13px; color: #8a8780; margin-bottom: 1.25rem; }
#panel-3 .step-sub { margin-bottom: .4rem; }
#panel-3 .summary-pill { margin-bottom: .5rem; }

/* ── Option grids ── */
.opts3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 1.5rem; }
.opts2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 1.5rem; }
.s-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; border: 1.5px solid #e2e0da; border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s,background .15s; }
.s-opt:hover { border-color: #ccc9c0; background: #fdfcfa; }
.s-opt.selected { border-color: #2d6b4f; background: #f0f7f4; }
.s-opt.selected .s-label { color: #2d6b4f; }
.s-radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #ccc9c0; display: flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.s-opt.selected .s-radio { border-color: #2d6b4f; background: #2d6b4f; }
.s-opt.selected .s-radio::after { content:''; width:5px; height:5px; border-radius:50%; background:#fff; display:block; }
.s-label { font-size: 14px; font-weight: 500; color: #1a1916; }
.s-sub   { font-size: 12px; color: #8a8780; }

/* ── Image options ── */
.img-opt { border: 1.5px solid #e2e0da; border-radius: 10px; cursor: pointer; background: #fff; overflow: hidden; transition: border-color .15s; }
.img-opt:hover { border-color: #ccc9c0; }
.img-opt.selected { border-color: #2d6b4f; }
.img-opt img { width: 100%; height: 120px; object-fit: cover; display: block; }
.img-opt-body { padding: 10px 12px; display: flex; align-items: flex-start; gap: 8px; }
.img-radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #ccc9c0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s; margin-top: 2px; }
.img-opt.selected .img-radio { border-color: #2d6b4f; background: #2d6b4f; }
.img-opt.selected .img-radio::after { content:''; width:5px; height:5px; border-radius:50%; background:#fff; display:block; }
.img-opt-label { font-size: 14px; font-weight: 500; color: #1a1916; display: block; }
.img-opt.selected .img-opt-label { color: #2d6b4f; }
.img-opt-sub { font-size: 12px; color: #8a8780; display: block; margin-top: 2px; }

/* ── Fields ── */
.field { margin-bottom: .9rem; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8a8780; font-weight: 500; margin-bottom: 6px; }
.field input { width: 100%; padding: 10px 12px; border: 1.5px solid #e2e0da; border-radius: 10px; font-size: 15px; color: #1a1916; background: #fff; outline: none; transition: border-color .2s; font-family: inherit; }
.field input:focus { border-color: #b8975a; }
.field input::placeholder { color: #8a8780; opacity: .6; }
.field input.invalid { border-color: #d94f4f; background: #fff8f8; }
.field .field-error { font-size: 12px; color: #d94f4f; margin-top: 5px; display: none; }
.field input.invalid ~ .field-error { display: block; }

/* ── Hint ── */
.hint { background: #fff; border: 1px solid #e2d9c8; border-radius: 10px; padding: 9px 12px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1rem; }
.hint p { font-size: 12px; color: #1a1916; line-height: 1.5; }
.hint strong { font-weight: 600; }

/* ── Buttons ── */
.btn-row { display: flex; gap: 10px; align-items: center; }
.btn-back { padding: 11px 18px; background: transparent; border: 1.5px solid #e2e0da; border-radius: 10px; font-size: 13px; font-weight: 500; color: #8a8780; cursor: pointer; transition: all .2s; white-space: nowrap; font-family: inherit; }
.btn-back:hover { border-color: #ccc9c0; color: #1a1916; }
.btn-next { flex: 1; padding: 13px; background: #2d6b4f; color: #fff; border: none; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; font-family: inherit; white-space: nowrap; }
.btn-next:hover { background: #d4ae72; }
.btn-next:disabled { background: #8db9a8; color: #fff; cursor: not-allowed; }

/* ── Summary pills ── */
.summary-pill { display: inline-flex; align-items: center; gap: 5px; background: #faf5ec; border: 1px solid #e8d5b7; border-radius: 20px; padding: 4px 11px; font-size: 12px; font-weight: 500; color: #b8975a; margin-bottom: 1.25rem; cursor: pointer; }

/* ── Trust strip ── */
.trust-strip { display: flex; justify-content: center; gap: 1.25rem; margin-top: .5rem; flex-wrap: wrap; font-size: 12px; color: #6b6965; }
.trust-strip span { display: flex; align-items: center; gap: 4px; }

/* ── Success ── */
.gb-success { display: none; text-align: center; padding: 3rem 1.5rem; }
.success-tick { width: 60px; height: 60px; border-radius: 50%; background: #faf5ec; border: 1.5px solid #b8975a; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }

@media (max-width: 480px) {
    .gb-modal-title { font-size: 20px; }
    .opts3 { grid-template-columns: repeat(3,1fr); gap: 7px; }
    .s-label { font-size: 13px; }
    .bq-modal-box { border-radius: 12px; }
    .gb-modal-header { border-radius: 12px 12px 0 0; }
}
