/* Custom Order Form — Front-end Styles
   Design system: #faf8f5 bg, #111 text, Gill Sans, 2px border-radius, 0.5px borders */

@import url('https://fonts.googleapis.com/css2?family=Gill+Sans+Nova:wght@300;400&display=swap');

.cof-wrap {
    font-family: 'Gill Sans CE Light', 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    background: #faf8f5;
    color: #1a1a1a;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Header ── */
.cof-header {
    text-align: center;
    padding: 52px 32px 38px;
    border-bottom: 0.5px solid rgba(0,0,0,0.12);
}
.cof-eyebrow {
    font-size: 11px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: #888;
    font-weight: 300;
    margin: 0 0 14px;
}
.cof-title {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 35px;
    font-weight: 400;
    color: #111;
    letter-spacing: .04em;
    margin: 0 0 10px;
}
.cof-subtitle {
    font-size: 16px;
    color: #888;
    font-weight: 300;
    margin: 0;
}

/* ── Steps bar ── */
.cof-steps-bar {
    display: flex;
    align-items: flex-start;
    padding: 28px 32px 0;
}
.cof-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}
.cof-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 0.5px;
    background: #ccc;
}
.cof-step-item.done::after { background: #111; }

.cof-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 400;
    position: relative;
    z-index: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: all .2s;
}
.cof-step-dot.future   { background: #faf8f5; border: 1px solid #ccc; color: #bbb; }
.cof-step-dot.done-dot { background: #111; border: 1px solid #111; color: #fff; }
.cof-step-dot.active-dot { background: #fff; border: 2px solid #111; color: #111; font-weight: 600; }

.cof-step-label {
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #bbb;
    font-weight: 300;
    white-space: nowrap;
}
.cof-step-item.active .cof-step-label { color: #111; font-weight: 400; }
.cof-step-item.done .cof-step-label   { color: #666; }

/* ── Divider ── */
.cof-divider {
    height: 0.5px;
    background: rgba(0,0,0,0.1);
    margin: 0 48px;
}

/* ── Panel ── */
.cof-panel {
    padding: 38px 48px 28px;
    min-height: 360px;
}
.cof-panel-title {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 35px;
    font-weight: 400;
    color: #111;
    letter-spacing: .02em;
    margin: 0 0 6px;
}
.cof-panel-desc {
    font-size: 16px;
    color: #999;
    font-weight: 300;
    margin: 0 0 28px;
}

/* ── Grid / Fields ── */
.cof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
}
.cof-field            { display: flex; flex-direction: column; gap: 7px; }
.cof-field.full       { grid-column: 1 / -1; }
.cof-label {
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #888;
    font-weight: 300;
}
.cof-input {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    padding: 11px 14px;
    font-family: 'Gill Sans CE Light', 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #111;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s;
}
.cof-input:focus  { border-color: #111; }
.cof-input.error  { border-color: #c0392b; }
.cof-textarea     { resize: vertical; min-height: 100px; }

/* Error messages */
.cof-field-error {
    font-size: 11px;
    color: #c0392b;
    letter-spacing: .05em;
    margin-top: 2px;
}

/* ── Inspiration grid ── */
.cof-inspo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.cof-inspo-card {
    aspect-ratio: 3 / 4;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.cof-inspo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cof-inspo-placeholder {
    width: 100%; height: 100%;
    background: #ede9e2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; cursor: pointer;
}
.cof-inspo-placeholder span {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #b0a89a;
    font-weight: 300;
}
.cof-inspo-remove {
    position: absolute;
    top: 6px; right: 6px;
    width: 22px; height: 22px;
    background: rgba(0,0,0,0.55);
    border: none; border-radius: 50%;
    color: #fff; font-size: 14px;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    line-height: 1;
}
.cof-inspo-note-wrap {
    margin-top: 8px;
}
.cof-add-inspo {
    width: 100%; height: 100%;
    border: 0.5px dashed rgba(0,0,0,0.2);
    background: transparent;
    border-radius: 2px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; cursor: pointer;
    box-sizing: border-box;
    aspect-ratio: 3 / 4;
    transition: border-color .15s;
}
.cof-add-inspo:hover { border-color: #888; }
.cof-add-inspo span {
    font-size: 11px;
    letter-spacing: .18em;
    color: #bbb;
    text-transform: uppercase;
    font-weight: 300;
}
.cof-inspo-pair {
    display: flex; flex-direction: column;
}

/* ── Voice recorder ── */
.cof-voice-box {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 2px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.cof-voice-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #111;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: background .2s;
}
.cof-voice-btn.recording { background: #c0392b; }
.cof-voice-meta {
    display: flex; flex-direction: column;
    gap: 5px; flex: 1; min-width: 0;
}
.cof-voice-lbl {
    font-size: 12px; letter-spacing: .15em;
    text-transform: uppercase; color: #999; font-weight: 300;
}
.cof-voice-wave {
    display: flex; align-items: center;
    gap: 2px; height: 16px;
}
.cof-voice-bar {
    width: 2px; background: #ddd;
    border-radius: 2px; transition: height .1s;
}
.cof-voice-time {
    font-size: 13px; color: #bbb;
    letter-spacing: .08em; white-space: nowrap; flex-shrink: 0;
}
.cof-voice-playback {
    margin-top: 10px;
    width: 100%;
}

/* ── Timeline chips ── */
.cof-timeline-opts {
    display: flex; gap: 10px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.cof-chip {
    padding: 9px 18px;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    font-size: 13px; letter-spacing: .08em;
    cursor: pointer; background: #fff; color: #555;
    text-transform: uppercase; font-weight: 300;
    font-family: inherit;
    transition: all .15s;
}
.cof-chip.sel, .cof-chip:hover { background: #111; color: #fff; border-color: #111; }
.cof-budget-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 20px;
}

/* ── Review blocks ── */
.cof-rblock {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 2px;
    padding: 18px 22px;
    margin-bottom: 14px;
}
.cof-rsec {
    font-size: 11px; letter-spacing: .28em;
    text-transform: uppercase; color: #bbb;
    margin-bottom: 12px; font-weight: 300;
}
.cof-rrow {
    display: flex; justify-content: space-between;
    font-size: 15px; padding: 6px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    color: #666; font-weight: 300;
}
.cof-rrow:last-child { border-bottom: none; }
.cof-rval { color: #111; font-weight: 400; text-align: right; }

/* ── Receipt (Step 6) ── */
.cof-receipt {
    background: #fff;
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}
.cof-receipt-hd {
    background: #111; color: #fff;
    padding: 20px 28px;
    display: flex; justify-content: space-between; align-items: center;
}
.cof-receipt-brand {
    font-size: 16px; letter-spacing: .25em;
    text-transform: uppercase; font-weight: 400;
}
.cof-receipt-tag {
    font-size: 11px; letter-spacing: .15em;
    text-transform: uppercase; color: #aaa; font-weight: 300; margin-top: 3px;
}
.cof-receipt-ref-num {
    font-size: 20px; font-weight: 400;
    letter-spacing: .08em; text-align: right;
}
.cof-receipt-ref-lbl {
    font-size: 10px; letter-spacing: .2em;
    text-transform: uppercase; color: #888;
    margin-top: 2px; text-align: right;
}
.cof-receipt-body { padding: 24px 28px; }
.cof-rrow2 {
    display: flex; justify-content: space-between;
    padding: 7px 0; border-bottom: 0.5px solid rgba(0,0,0,0.06); font-size: 15px;
}
.cof-rrow2:last-child { border-bottom: none; }
.cof-rkey  { color: #888; font-weight: 300; font-size: 13px; }
.cof-rval2 { color: #111; font-weight: 400; text-align: right; }
.cof-rdiv  { height: 0.5px; background: rgba(0,0,0,0.08); margin: 14px 0; }
.cof-rseclbl {
    font-size: 10px; letter-spacing: .3em;
    text-transform: uppercase; color: #bbb;
    margin-bottom: 10px; font-weight: 300;
}
.cof-status {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0faf5; border: 0.5px solid #a3d9b8;
    color: #2a7a4f; padding: 4px 12px; border-radius: 2px;
    font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.cof-receipt-actions {
    display: flex; align-items: center;
    padding: 0 28px 20px; gap: 10px; flex-wrap: wrap;
}
.cof-dl-btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 0.5px solid rgba(0,0,0,0.25); padding: 10px 24px;
    border-radius: 2px; font-size: 12px; letter-spacing: .2em;
    text-transform: uppercase; cursor: pointer;
    background: transparent; font-family: inherit;
    color: #333; font-weight: 300;
}
.cof-wa-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #111; color: #fff; padding: 10px 24px;
    border-radius: 2px; font-size: 12px; letter-spacing: .2em;
    text-transform: uppercase; cursor: pointer; border: none;
    font-family: inherit; font-weight: 300;
}
.cof-cbar-wrap { padding: 0 28px 6px; }
.cof-cbar-bg   { height: 2px; background: #eee; border-radius: 1px; overflow: hidden; }
.cof-cbar-fill { height: 100%; background: #111; width: 100%; transition: width 1s linear; }

/* ── Footer nav ── */
.cof-footer {
    padding: 22px 48px;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 0.5px solid rgba(0,0,0,0.1);
}
.cof-btn {
    padding: 11px 32px;
    font-size: 12px; letter-spacing: .22em;
    text-transform: uppercase;
    font-family: inherit; cursor: pointer;
    border-radius: 2px; transition: all .2s; font-weight: 300;
}
.cof-btn-o { background: transparent; border: 0.5px solid rgba(0,0,0,0.3); color: #555; }
.cof-btn-o:hover { border-color: #111; color: #111; }
.cof-btn-f { background: #111; color: #fff; border: 0.5px solid #111; }
.cof-btn-f:hover { background: #333; }
.cof-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cof-step-count {
    font-size: 12px; color: #bbb;
    letter-spacing: .12em; font-weight: 300;
}

/* ── Loading state ── */
.cof-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cofSpin .6s linear infinite;
    vertical-align: middle; margin-right: 6px;
}
@keyframes cofSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 640px) {
    .cof-panel           { padding: 28px 20px 20px; }
    .cof-footer          { padding: 16px 20px; }
    .cof-divider         { margin: 0 20px; }
    .cof-grid            { grid-template-columns: 1fr; }
    .cof-budget-row      { grid-template-columns: 1fr; }
    .cof-inspo-grid      { grid-template-columns: repeat(2, 1fr); }
    .cof-steps-bar       { padding: 20px 16px 0; }
    .cof-step-label      { display: none; }
    .cof-panel-title     { font-size: 26px; }
    .cof-receipt-actions { flex-direction: column; align-items: stretch; }
    .cof-dl-btn, .cof-wa-btn { justify-content: center; }
}
