/* ---------- Shared (enquiry form + job page) ---------- */
.ocp-enquiry, .ocp-page { --ocp-ink: #1b1d20; --ocp-muted: #6b7078; --ocp-line: #e2e4e7; --ocp-soft: #f5f6f7; --ocp-ok: #0a7a35; --ocp-err: #b3261e; }
.ocp-enquiry *, .ocp-page * { box-sizing: border-box; }

.ocp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ocp-brand, #c8102e); color: #fff !important; border: 0; border-radius: 6px; padding: 13px 22px; font-weight: 700; font-size: 16px; text-decoration: none !important; cursor: pointer; line-height: 1.2; min-height: 48px; }
.ocp-btn:hover { filter: brightness(.92); }
.ocp-btn[disabled] { opacity: .6; cursor: default; }
.ocp-btn--ghost { background: #fff; color: var(--ocp-ink) !important; border: 1px solid var(--ocp-line); font-weight: 600; font-size: 14px; padding: 9px 14px; min-height: 40px; }
.ocp-btn--ghost:hover { background: var(--ocp-soft); filter: none; }

.ocp-alert { padding: 14px 16px; border-radius: 6px; margin: 0 0 16px; line-height: 1.5; }
.ocp-alert--ok { background: #e7f5ec; color: var(--ocp-ok); border: 1px solid #bfe3cc; }
.ocp-alert--err { background: #fdecea; color: var(--ocp-err); border: 1px solid #f5c2bd; }

.ocp-field { display: block; margin: 0; }
.ocp-field > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ocp-ink); }
.ocp-field input[type=text], .ocp-field input[type=email], .ocp-field input[type=tel], .ocp-field select, .ocp-field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #c9ccd1; border-radius: 6px; font-size: 16px; background: #fff; color: var(--ocp-ink); font-family: inherit; line-height: 1.4; }
.ocp-field input:focus, .ocp-field select:focus, .ocp-field textarea:focus { outline: 2px solid var(--ocp-brand, #c8102e); outline-offset: 0; border-color: transparent; }
.ocp-field small { display: block; color: var(--ocp-muted); font-size: 13px; margin-top: 6px; }
.ocp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ocp-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--ocp-brand, #c8102e); }

/* ---------- Enquiry form (inside the theme) ---------- */
.ocp-enquiry { color: var(--ocp-ink); }
.ocp-enquiry__title { margin: 0 0 16px; }
.ocp-form .ocp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.ocp-form .ocp-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .ocp-form .ocp-grid { grid-template-columns: 1fr; } }
.ocp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Job page (standalone) ---------- */
body.ocp-page { margin: 0; background: #eef0f2; color: var(--ocp-ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.ocp-header { background: #17191c; border-bottom: 4px solid var(--ocp-brand, #c8102e); padding: 12px 16px; }
.ocp-brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.ocp-brand img { max-height: 52px; max-width: 220px; display: block; background: #fff; border-radius: 6px; padding: 4px 8px; }
.ocp-main { max-width: 760px; margin: 0 auto; padding: 16px; }
.ocp-footer { text-align: center; color: var(--ocp-muted); font-size: 13px; padding: 8px 16px 32px; }
.ocp-page h1 { font-size: 22px; margin: 0 0 8px; }
.ocp-page h2 { font-size: 18px; margin: 0 0 12px; }
.ocp-page h3 { font-size: 16px; margin: 20px 0 10px; }
.ocp-card { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ocp-muted { color: var(--ocp-muted); font-size: 14px; }
.ocp-note { background: var(--ocp-soft); border-left: 3px solid var(--ocp-brand, #c8102e); padding: 10px 14px; border-radius: 0 6px 6px 0; margin: 12px 0; font-size: 15px; }

.ocp-summary__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.ocp-ref { font: 700 20px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.ocp-pill { display: inline-block; background: var(--ocp-soft); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ocp-pill--ok { background: #e7f5ec; color: var(--ocp-ok); }
.ocp-pill--due { background: #fff3df; color: #8a5300; }
.ocp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.ocp-dl dt { color: var(--ocp-muted); }
.ocp-dl dd { margin: 0; word-break: break-word; }
.ocp-bank { background: var(--ocp-soft); padding: 12px 14px; border-radius: 8px; margin-top: 10px; }

/* Upload */
.ocp-drop { display: flex; align-items: center; justify-content: center; text-align: center; border: 2px dashed #c9ccd1; border-radius: 10px; padding: 26px 16px; cursor: pointer; background: var(--ocp-soft); margin: 12px 0; position: relative; }
.ocp-drop:hover, .ocp-drop.is-over { border-color: var(--ocp-brand, #c8102e); }
.ocp-drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ocp-drop__label strong { color: var(--ocp-brand, #c8102e); display: block; font-size: 17px; }
.ocp-queue { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ocp-qitem { display: grid; grid-template-columns: 72px 1fr 32px; gap: 10px; align-items: start; background: var(--ocp-soft); border-radius: 8px; padding: 8px; }
.ocp-qitem__thumb { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: #dde0e3; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ocp-muted); }
.ocp-qitem__fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ocp-qitem__fields input { width: 100%; padding: 9px 10px; border: 1px solid #c9ccd1; border-radius: 6px; font-size: 16px; }
.ocp-qitem__name { font-size: 12px; color: var(--ocp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocp-qitem__x { border: 0; background: none; font-size: 22px; color: var(--ocp-muted); cursor: pointer; padding: 4px; line-height: 1; }
.ocp-qitem.is-done { background: #e7f5ec; }
.ocp-qitem.is-error { background: #fdecea; }
.ocp-qitem__status { font-size: 12px; font-weight: 600; }
.ocp-js .ocp-nojs-only { display: none; }
.ocp-upload__form .ocp-field { margin-bottom: 14px; }
.ocp-progress { margin-top: 12px; background: var(--ocp-soft); border-radius: 999px; height: 26px; position: relative; overflow: hidden; }
.ocp-progress__bar { background: var(--ocp-brand, #c8102e); height: 100%; width: 0; transition: width .2s; }
.ocp-progress__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; mix-blend-mode: difference; color: #fff; }

/* Gallery */
.ocp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ocp-tile { display: block; border-radius: 8px; overflow: hidden; background: var(--ocp-soft); text-decoration: none; color: var(--ocp-ink); }
.ocp-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.ocp-tile__doc { display: flex; aspect-ratio: 1; align-items: center; justify-content: center; font-weight: 700; color: var(--ocp-muted); }
.ocp-tile__cap { display: block; padding: 6px 8px; font-size: 12.5px; line-height: 1.3; }

/* Quote */
.ocp-quote__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ocp-quote__head h2 { margin: 0; }
.ocp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ocp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ocp-muted); padding: 8px 6px; border-bottom: 1px solid var(--ocp-line); }
.ocp-table td { padding: 10px 6px; border-bottom: 1px solid var(--ocp-line); vertical-align: top; }
.ocp-table .r { text-align: right; white-space: nowrap; }
.ocp-table tfoot td { border-bottom: 0; padding: 6px; }
.ocp-table tfoot .ocp-total td { font-weight: 800; font-size: 18px; border-top: 2px solid var(--ocp-ink); padding-top: 12px; }
@media (max-width: 560px) {
	.ocp-table--inv th:nth-child(2), .ocp-table--inv td:nth-child(2) { display: none; }
	.ocp-table--quote thead { display: none; }
	.ocp-table--quote tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--ocp-line); }
	.ocp-table--quote tbody td { border: 0; padding: 0; }
	.ocp-table--quote tbody td:nth-child(1) { grid-column: 1 / -1; font-weight: 600; }
	.ocp-table--quote tbody td:nth-child(2)::before { content: 'Qty '; color: var(--ocp-muted); }
	.ocp-table--quote tbody td:nth-child(2) { text-align: left; }
	.ocp-table--quote tbody td:nth-child(3) { display: none; }
	.ocp-table--quote tbody td:nth-child(4) { font-weight: 700; }
}
.ocp-terms { margin: 14px 0; font-size: 14px; }
.ocp-terms summary { cursor: pointer; color: var(--ocp-brand, #c8102e); font-weight: 600; }
.ocp-terms > div { padding: 10px 0 0; color: #3e4248; }
.ocp-accept { border-top: 1px solid var(--ocp-line); margin-top: 16px; padding-top: 4px; display: flex; flex-direction: column; gap: 14px; }
.ocp-accept .ocp-btn { align-self: flex-start; }
.ocp-accepted { background: #e7f5ec; color: var(--ocp-ok); padding: 12px 14px; border-radius: 8px; margin-top: 12px; }
.ocp-owing { font-size: 17px; margin: 14px 0 0; }
.ocp-contact { display: flex; flex-wrap: wrap; gap: 8px; }
