/* ============================================================
   CUSTOMIZE JEWELLERY PAGE
   Loaded only on page-customize-jewellery.php (see functions.php).
   Page-scoped classes only (cjp-*) — does not touch homepage's
   shared .cj-steps/.cj-step* in main.css.
   ============================================================ */

/* BREADCRUMB */
.breadcrumb-bar { padding: 14px 0; margin-top: var(--offset-top); background: var(--ivory-deep); border-bottom: 1px solid rgba(26,20,16,0.06); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-soft); flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.breadcrumb a { color: var(--ink-soft); transition: color 0.25s var(--ease); flex-shrink: 0; }
.breadcrumb a:hover { color: var(--marigold-deep); }
.breadcrumb span[aria-current] { color: var(--marigold-deep); font-weight: 600; }
.breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.5; }

/* HERO IMAGE */
.cjp-hero { position: relative; height: clamp(280px, 34vw, 470px); overflow: hidden; background: #1a1008; }
.cjp-hero-media { position: absolute; inset: 0; }
.cjp-hero-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.cjp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,9,7,0.18), rgba(14,9,7,0.03) 55%, rgba(14,9,7,0.12)); pointer-events: none; }
@media (max-width: 640px) { .cjp-hero { height: clamp(220px, 62vw, 340px); } .cjp-hero-media img { object-position: center; } }

/* ============================================================
   MAIN TWO-COLUMN LAYOUT — info/steps on the left, form on the
   right, matching the reference. On mobile the order flips so
   the form appears first and the steps/trust content follows.
   ============================================================ */
.cjp-main { background: var(--ivory-deep); }
.cjp-main-layout { display: grid; grid-template-columns: minmax(280px,380px) minmax(0,1fr); gap: 52px; align-items: start; }

.cjp-info-col { order: 1; display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--offset-top) + 20px); }
.cjp-info-head { text-align: left; margin: 0; max-width: none; }
.cjp-info-head .eyebrow { justify-content: flex-start; }
.cjp-info-head p:last-child { max-width: 420px; }

.cjp-form-col { order: 2; min-width: 0; }

/* VERTICAL STEPS (timeline) — page-scoped, does not reuse the
   homepage's horizontal .cj-steps to avoid any cross-page drift. */
.cjp-steps { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.cjp-step { position: relative; display: flex; gap: 18px; padding-bottom: 30px; }
.cjp-step:last-child { padding-bottom: 0; }
.cjp-step::before { content: ''; position: absolute; left: 22px; top: 50px; bottom: 4px; width: 1px; background-image: linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 14px); background-size: 1px 14px; background-repeat: repeat-y; }
.cjp-step:last-child::before { display: none; }
.cjp-step-num { display: none; }
.cjp-step-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,var(--marigold),var(--marigold-deep)); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -8px rgba(232,116,12,0.5); border: 3px solid var(--ivory-deep); z-index: 1; }
.cjp-step-icon svg { width: 19px; height: 19px; color: var(--white); }
.cjp-step-body h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.cjp-step-body p { font-size: 0.86rem; color: #6b5d4d; line-height: 1.6; }

/* SIDE / TRUST CARDS */
.cjp-side-card { background: var(--white); border: 1px solid rgba(26,20,16,0.08); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-card); }
.cjp-side-card h4 { font-size: 1.1rem; color: var(--ink); margin-bottom: 10px; }
.cjp-side-card > p { font-size: 0.86rem; color: #6b5d4d; line-height: 1.6; margin-bottom: 18px; }
.cjp-side-wa, .cjp-side-call { width: 100%; margin-bottom: 10px; }
.cjp-side-wa .icon-wa, .cjp-side-call .icon-call { width: 16px; height: 16px; }
.cjp-side-trust ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cjp-side-trust li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.cjp-side-trust li svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--marigold); margin-top: 1px; }

/* FORM CARD */
.cjp-form-card { background: var(--white); border: 1px solid rgba(26,20,16,0.08); border-radius: 22px; padding: 40px; box-shadow: var(--shadow-card); }
.cjp-form-head { text-align: left; margin: 0 0 30px; max-width: none; }
.cjp-form-head .eyebrow { justify-content: flex-start; }
.cjp-form-head h2 { font-size: clamp(1.5rem,3vw,1.9rem); margin: 12px 0 10px; }
.cjp-form-head p:last-child { max-width: 480px; font-size: 0.9rem; }

.cjp-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; margin-bottom: 22px; }
.cjp-form-grid-3 { grid-template-columns: repeat(3,1fr); }
.cjp-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.cjp-form-grid .cjp-field { margin-bottom: 0; }
.cjp-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.cjp-field label .req { color: var(--marigold-deep); }
.cjp-field input[type="text"],
.cjp-field input[type="tel"],
.cjp-field input[type="email"],
.cjp-field select,
.cjp-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.4px solid #e4d9c6; background: var(--ivory); color: var(--ink);
  font-family: 'Poppins', sans-serif; font-size: 0.92rem; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); appearance: none;
}
.cjp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C75F05' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px;
}
.cjp-field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.cjp-field input::placeholder, .cjp-field textarea::placeholder { color: #a9987f; }
.cjp-field input:focus, .cjp-field select:focus, .cjp-field textarea:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 4px rgba(232,116,12,0.12); background: var(--white); }
.cjp-field.cjp-field-invalid input, .cjp-field.cjp-field-invalid select { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,0.1); }

/* Phone with fixed +91 prefix */
.cjp-phone-group { display: flex; }
.cjp-phone-code { display: flex; align-items: center; padding: 0 14px; border: 1.4px solid #e4d9c6; border-right: none; border-radius: 12px 0 0 12px; background: var(--ivory-deep); font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); flex-shrink: 0; }
.cjp-phone-group input { border-radius: 0 12px 12px 0 !important; }

/* MULTI-IMAGE UPLOAD */
.cjp-field-upload { margin-bottom: 24px; }
.cjp-upload { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; text-align: center; padding: 26px 20px; border: 1.6px dashed #d8c8a8; border-radius: 14px; background: var(--ivory); cursor: pointer; transition: border-color 0.25s var(--ease), background 0.25s var(--ease); min-height: 130px; }
.cjp-upload:hover, .cjp-upload:focus-within, .cjp-upload.is-dragging, .cjp-upload.has-files { border-color: var(--marigold); background: #FFF4EA; }
.cjp-upload.is-dragging { transform: translateY(-1px); }
.cjp-upload-body.has-files { opacity: 0.92; }
.cjp-upload-body { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #8a7a68; }
.cjp-upload-body svg { width: 28px; height: 28px; color: var(--marigold-deep); margin-bottom: 4px; }
.cjp-upload-text { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.cjp-upload-hint { font-size: 0.76rem; color: #a9987f; }
.cjp-upload-note { font-size: 0.76rem; color: #a9987f; margin-top: 10px; line-height: 1.5; }

.cjp-upload-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(84px,1fr)); gap: 10px; margin-top: 12px; }
.cjp-upload-thumb { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid rgba(26,20,16,0.08); background: var(--ivory-deep); }
.cjp-upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cjp-upload-thumb::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.cjp-upload-remove { z-index: 2; }
.cjp-upload-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(26,20,16,0.72); color: #fff; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.2s; border: none; cursor: pointer; }
.cjp-upload-remove:hover { background: #c0392b; }

.cjp-form-error { background: #fdecea; border: 1px solid #f3c6c1; color: #a3352b; font-size: 0.85rem; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }

.cjp-submit { width: 100%; padding: 16px 26px; font-size: 0.92rem; }
.cjp-submit svg { width: 18px; height: 18px; }
.cjp-form-note { text-align: center; font-size: 0.78rem; color: #8a7a68; margin-top: 14px; line-height: 1.6; }

/* SUCCESS STATE */
.cjp-success { background: var(--white); border: 1px solid rgba(26,20,16,0.08); border-radius: 20px; padding: 48px 36px; text-align: center; box-shadow: var(--shadow-card); }
.cjp-success svg { width: 54px; height: 54px; color: #2e8b57; margin: 0 auto 18px; }
.cjp-success h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--ink); }
.cjp-success p { font-size: 0.92rem; color: #6b5d4d; line-height: 1.65; max-width: 440px; margin: 0 auto 22px; }
.cjp-success-edit { display: block; margin: 16px auto 0; font-size: 0.82rem; color: var(--marigold-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; }

/* CTA BANNER */
.cjp-cta { margin: 50px 0 50px; background: linear-gradient(120deg,var(--maroon-deep),var(--maroon) 75%); border-radius: 28px; padding: 52px 44px; position: relative; overflow: hidden; }
.cjp-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(228,200,135,0.18), transparent 55%); }
.cjp-cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cjp-cta h3 { font-size: 1.7rem; color: var(--ivory); max-width: 460px; }
.cjp-cta p { margin-top: 8px; font-size: 0.9rem; color: #e7d8c4; max-width: 460px; line-height: 1.6; }
.cjp-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cjp-cta .icon-wa, .cjp-cta .icon-call { width: 16px; height: 16px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .cjp-main-layout { grid-template-columns: 1fr; gap: 40px; }
  .cjp-info-col { position: static; }
  /* form first, steps/trust content follows */
  .cjp-form-col { order: -1; }
  .cjp-info-col { order: 2; }
}
@media (max-width: 640px) {
  .cjp-form-card { padding: 26px 20px; border-radius: 16px; }
  .cjp-form-grid, .cjp-form-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .cjp-cta { margin: 15px 0; padding: 36px 26px; border-radius: 20px; }
  .cjp-cta h3 { font-size: 1.35rem; }
  .cjp-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cjp-cta-btns { width: 100%; flex-direction: column; }
  .cjp-cta-btns .btn { width: 100%; }
}