/**
 * ROOH Collections - Custom Boutique Stitching Stylesheet
 * Matches exact UI/UX from specification screenshot:
 * Colors: Luxury Burgundy #43141E, Golden Brown #8D6034, Warm Sand #FAF7F2, Ivory #F7F1E8
 * 3 Screens: 
 * Panel 1: Hero Banner + 3 Process Steps + 4-Card Fabric Grid (Georgia Silk Selected)
 * Panel 2: Detail Gallery with Hero Chevrons, Centered Thumbnails & Aligned Specs
 * Panel 3: "Start Your Custom Request" Modal Studio with 4-Col Measurements Grid
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --rooh-cb-burgundy: #43141e;
  --rooh-cb-burgundy-dark: #320e16;
  --rooh-cb-burgundy-hover: #551b27;
  --rooh-cb-gold: #8d6034;
  --rooh-cb-gold-light: #a47342;
  --rooh-cb-sand-bg: #faf7f2;
  --rooh-cb-card-bg: #ffffff;
  --rooh-cb-card-border: #eadfcf;
  --rooh-cb-input-border: #dcd4c8;
  --rooh-cb-text-main: #231f20;
  --rooh-cb-text-muted: #6f6564;
  --rooh-cb-banner-bg: #f7f1e8;
  --rooh-cb-help-bg: #faf4eb;
  --rooh-cb-help-border: #efe4d2;
  --rooh-font-serif: 'Playfair Display', Georgia, serif;
  --rooh-font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

/* Base Page Wrapper */
.rooh-cb-page {
  background-color: var(--rooh-cb-sand-bg);
  min-height: 100vh;
  padding-bottom: 90px;
  color: var(--rooh-cb-text-main);
  font-family: var(--rooh-font-sans);
}

/* ==========================================================================
   1. HERO & PROCESS STEPS (Panel 1)
   ========================================================================== */
.rooh-cb-hero {
  background: linear-gradient(180deg, #f7f2ea 0%, #faf7f2 100%);
  padding: 50px 0 36px;
  border-bottom: 1px solid var(--rooh-cb-card-border);
}

.rooh-cb-hero__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto 36px;
}

.rooh-cb-hero__content {
  flex: 1.2;
}

.rooh-cb-hero__title {
  font-family: var(--rooh-font-serif);
  font-size: 46px;
  line-height: 1.14;
  color: var(--rooh-cb-burgundy);
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.rooh-cb-hero__tagline {
  font-size: 16.5px;
  font-weight: 600;
  color: #3a2f2d;
  margin: 0 0 12px;
  line-height: 1.4;
}

.rooh-cb-hero__desc {
  font-size: 14px;
  color: var(--rooh-cb-text-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 500px;
}

.rooh-cb-hero__visual {
  flex: 0.9;
  display: flex;
  justify-content: flex-end;
}

.rooh-cb-hero__drape-img {
  width: 100%;
  max-width: 380px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(67, 20, 30, 0.08);
}

/* 3 Process Steps Banner */
.rooh-cb-steps-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.rooh-cb-step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid var(--rooh-cb-card-border);
  padding: 12px 18px;
  border-radius: 8px;
  flex: 1;
  text-align: left;
  transition: all 0.25s ease;
}

.rooh-cb-step-card.is-active {
  border-color: var(--rooh-cb-gold);
  background: #fffdfa;
  box-shadow: 0 4px 14px rgba(141, 96, 52, 0.1);
}

.rooh-cb-step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4ede2;
  color: var(--rooh-cb-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13.5px;
  flex-shrink: 0;
}

.rooh-cb-step-card.is-active .rooh-cb-step-number {
  background: var(--rooh-cb-burgundy);
  color: #ffffff;
}

.rooh-cb-step-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--rooh-cb-burgundy);
  font-weight: 700;
}

.rooh-cb-step-text small {
  display: block;
  font-size: 11.5px;
  color: var(--rooh-cb-text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.rooh-cb-step-arrow {
  color: #c5a572;
  font-size: 18px;
  font-weight: 600;
}

/* ==========================================================================
   2. SCREEN 1: FABRIC CATALOG GRID (Panel 1)
   ========================================================================== */
.rooh-cb-main-wrap {
  padding-top: 40px;
}

.rooh-cb-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rooh-cb-card-border);
  padding-bottom: 14px;
}

.rooh-cb-section-title {
  font-family: var(--rooh-font-serif);
  font-size: 26px;
  color: var(--rooh-cb-burgundy);
  margin: 0;
  font-weight: 600;
}

.rooh-cb-badge-count {
  font-size: 11px;
  font-weight: 700;
  color: #8e827e;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* 4-Card Grid */
.rooh-cb-fabrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rooh-cb-fabric-card {
  background: #ffffff;
  border: 1px solid var(--rooh-cb-card-border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.rooh-cb-fabric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(67, 20, 30, 0.08);
}

/* Selected Card: 2px gold-brown border */
.rooh-cb-fabric-card.is-selected {
  border: 2px solid var(--rooh-cb-gold);
  box-shadow: 0 6px 20px rgba(141, 96, 52, 0.14);
}

.rooh-cb-fabric-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.4;
  background: #f0ebe2;
  overflow: hidden;
}

.rooh-cb-fabric-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rooh-cb-fabric-card:hover .rooh-cb-fabric-card__img {
  transform: scale(1.04);
}

/* Top-right checkmark badge for selected card */
.rooh-cb-selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--rooh-cb-gold);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.rooh-cb-fabric-card__body {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.rooh-cb-fabric-card__title {
  font-family: var(--rooh-font-serif);
  font-size: 18px;
  color: var(--rooh-cb-burgundy);
  margin: 0 0 6px;
  font-weight: 600;
}

.rooh-cb-fabric-card__tagline {
  font-size: 12px;
  color: var(--rooh-cb-text-muted);
  margin: 0 0 12px;
  line-height: 1.45;
  min-height: 34px;
}

.rooh-cb-fabric-card__price {
  font-family: var(--rooh-font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--rooh-cb-burgundy);
  margin-bottom: 14px;
}

/* Buttons */
.rooh-cb-view-fabric-btn {
  width: 100%;
  height: 38px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rooh-btn--outline {
  background: transparent;
  border: 1px solid var(--rooh-cb-input-border);
  color: var(--rooh-cb-burgundy);
}

.rooh-btn--outline:hover {
  background: #f7f2ea;
  border-color: var(--rooh-cb-burgundy);
}

.rooh-btn--burgundy {
  background: var(--rooh-cb-burgundy);
  border: 1px solid var(--rooh-cb-burgundy);
  color: #ffffff;
}

.rooh-btn--burgundy:hover {
  background: var(--rooh-cb-burgundy-hover);
  border-color: var(--rooh-cb-burgundy-hover);
  color: #ffffff;
}

/* ==========================================================================
   3. SCREEN 2: FABRIC DETAIL & GALLERY VIEW (Panel 2)
   ========================================================================== */
.rooh-cb-detail-container {
  max-width: 740px;
  margin: 0 auto;
}

.rooh-cb-back-bar {
  margin-bottom: 18px;
}

.rooh-cb-back-btn {
  background: none;
  border: none;
  color: var(--rooh-cb-burgundy);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.rooh-cb-back-btn:hover {
  text-decoration: underline;
}

.rooh-cb-detail-content-wrap {
  background: #ffffff;
  border: 1px solid var(--rooh-cb-card-border);
  border-radius: 10px;
  padding: 24px 28px 32px;
  box-shadow: 0 4px 20px rgba(67, 20, 30, 0.05);
}

/* Hero Carousel */
.rooh-cb-gallery-hero-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #f4ede2;
}

.rooh-cb-gallery-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.rooh-cb-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--rooh-cb-burgundy);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
  z-index: 2;
}

.rooh-cb-gallery-nav:hover {
  background: #ffffff;
}

.rooh-cb-gallery-nav--prev {
  left: 14px;
}

.rooh-cb-gallery-nav--next {
  right: 14px;
}

/* 3 Thumbnails row centered under hero */
.rooh-cb-gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 22px;
}

.rooh-cb-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.rooh-cb-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooh-cb-thumb-btn.is-active {
  border-color: var(--rooh-cb-gold);
}

/* Title and Price Header Row */
.rooh-cb-detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #f0e9df;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.rooh-cb-detail-title {
  font-family: var(--rooh-font-serif);
  font-size: 32px;
  color: var(--rooh-cb-burgundy);
  margin: 0;
  font-weight: 600;
}

.rooh-cb-detail-price {
  font-family: var(--rooh-font-serif);
  font-size: 32px;
  color: var(--rooh-cb-burgundy);
  font-weight: 700;
}

.rooh-cb-detail-desc {
  font-size: 14px;
  color: var(--rooh-cb-text-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

/* Aligned colons specifications */
.rooh-cb-specs-aligned {
  background: #faf8f5;
  border: 1px solid #ebd9c4;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.rooh-cb-spec-row {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  padding: 4px 0;
}

.rooh-cb-spec-key {
  width: 120px;
  color: #4a3e3d;
  font-weight: 500;
}

.rooh-cb-spec-sep {
  width: 20px;
  color: #8e827e;
  text-align: center;
}

.rooh-cb-spec-val {
  color: var(--rooh-cb-text-main);
  font-weight: 600;
}

/* Selection Status Box */
.rooh-cb-selection-status-box {
  background: #f6f0e6;
  border: 1px solid var(--rooh-cb-card-border);
  border-radius: 6px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.rooh-cb-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rooh-cb-burgundy);
  font-size: 13.5px;
  font-weight: 600;
}

.rooh-cb-status-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rooh-cb-gold);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.rooh-cb-change-fabric-link {
  background: none;
  border: none;
  color: var(--rooh-cb-burgundy);
  font-size: 13px;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.rooh-cb-change-fabric-link:hover {
  color: var(--rooh-cb-gold);
}

.rooh-cb-choose-btn {
  width: 100%;
  height: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  cursor: pointer;
}

/* ==========================================================================
   4. SCREEN 3: "START YOUR CUSTOM REQUEST" MODAL (Panel 3)
   ========================================================================== */
.rooh-cb-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.rooh-cb-modal.is-open {
  display: flex;
}

.rooh-custom-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 10, 14, 0.65);
  backdrop-filter: blur(4px);
}

.rooh-cb-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  margin: 20px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.rooh-cb-modal__content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 92vh;
  overflow: hidden;
}

.rooh-cb-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

/* Modal Header */
.rooh-cb-modal-header {
  padding: 18px 24px 14px;
  background: #ffffff;
  border-bottom: 1px solid #ebd9c4;
  flex-shrink: 0;
}

.rooh-cb-modal-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rooh-cb-modal-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.rooh-cb-brand-title {
  font-family: var(--rooh-font-serif, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #1e293b;
}

.rooh-cb-brand-sub {
  font-size: 8px;
  letter-spacing: 0.24em;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.rooh-cb-modal-title {
  font-family: var(--rooh-font-serif);
  font-size: 21px;
  color: #0c2340;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rooh-cb-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  padding: 4px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.rooh-cb-modal-close:hover {
  opacity: 1;
  color: #0c2340;
}

/* 4 Steps Header Indicator */
.rooh-cb-modal-steps-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 580px;
  margin: 0 auto 14px;
  padding: 0 10px;
}

.rooh-cb-nav-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rooh-cb-nav-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #d4c8b8;
  color: #7a6f6d;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.rooh-cb-nav-label {
  font-size: 12px;
  color: #7a6f6d;
  font-weight: 500;
}

.rooh-cb-nav-step.is-active .rooh-cb-nav-num {
  background: #0c2340;
  border-color: #0c2340;
  color: #ffffff;
}

.rooh-cb-nav-step.is-active .rooh-cb-nav-label {
  color: #0c2340;
  font-weight: 700;
}

.rooh-cb-nav-step.is-completed .rooh-cb-nav-num {
  background: #8d6034;
  border-color: #8d6034;
  color: #ffffff;
}

.rooh-cb-nav-step.is-completed .rooh-cb-nav-label {
  color: #1e293b;
  font-weight: 600;
}

.rooh-cb-nav-step.is-clickable {
  cursor: pointer;
}

.rooh-cb-nav-step.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.rooh-cb-nav-divider {
  flex: 1;
  height: 1px;
  background: #ebd9c4;
  margin: 0 12px;
  position: relative;
  top: -10px;
}

/* Pinned Selected Fabric Banner */
.rooh-cb-selected-fabric-banner {
  background: #f7f2eb;
  border: 1px solid #ebd9c4;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rooh-cb-sfb-media {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.rooh-cb-sfb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooh-cb-sfb-info {
  flex: 1;
  min-width: 0;
}

.rooh-cb-sfb-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.rooh-cb-sfb-row strong,
.rooh-cb-sfb-info strong {
  font-size: 14.5px;
  color: #1e293b;
  font-weight: 700;
}

.rooh-cb-sfb-price {
  font-size: 13.5px;
  color: #0c2340;
  font-weight: 700;
}

.rooh-cb-sfb-sub {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.rooh-cb-sfb-change {
  background: none;
  border: none;
  color: #1e293b;
  font-size: 12.5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  white-space: nowrap;
}

.rooh-cb-sfb-change:hover {
  color: #8d6034;
}

/* Scrollable Form Body */
.rooh-cb-modal-scroll-body {
  padding: 22px 28px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.rooh-cb-step-pane {
  display: none;
}

.rooh-cb-step-pane.is-active {
  display: block;
  animation: roohCbFadeIn 0.22s ease-out;
}

@keyframes roohCbFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rooh-cb-block-desc {
  font-size: 13px;
  color: #64748b;
  margin: -6px 0 16px;
  line-height: 1.5;
}

.rooh-cb-section-block {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0e8de;
}

.rooh-cb-section-block:last-child {
  border-bottom: none;
  margin-bottom: 10px;
}

.rooh-cb-block-title {
  font-size: 15px;
  font-weight: 700;
  color: #231f20;
  margin: 0 0 14px;
}

/* Form Fields & Rows */
.rooh-cr-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.rooh-cr-row--two > * {
  flex: 1;
}

.rooh-cr-field {
  margin-bottom: 14px;
}

.rooh-cr-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a2f2d;
  margin-bottom: 6px;
}

.rooh-req {
  color: #991b1b;
}

.rooh-cr-input,
.rooh-cr-select,
.rooh-cr-textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--rooh-cb-input-border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--rooh-cb-text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.rooh-cr-textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
}

.rooh-cr-input:focus,
.rooh-cr-select:focus,
.rooh-cr-textarea:focus {
  border-color: var(--rooh-cb-burgundy);
  box-shadow: 0 0 0 2px rgba(67, 20, 30, 0.08);
}

.rooh-cr-select-wrapper {
  position: relative;
}

.rooh-cr-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343141e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
  cursor: pointer;
}

/* Phone input with country prefix selector */
.rooh-cb-phone-input-group {
  display: flex;
  gap: 8px;
}

.rooh-cb-country-prefix {
  width: 80px;
  height: 42px;
  border: 1px solid var(--rooh-cb-input-border);
  border-radius: 6px;
  background: #faf8f5 url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343141e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 8px center;
  background-size: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rooh-cb-burgundy);
  padding: 0 22px 0 10px;
  appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}

.rooh-cb-phone-field {
  flex: 1;
}

/* Style Pills */
.rooh-cr-pill-group {
  margin-top: 14px;
}

.rooh-cr-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rooh-cr-pill {
  background: #ffffff;
  border: 1px solid var(--rooh-cb-input-border);
  color: #333333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rooh-cr-pill:hover {
  border-color: var(--rooh-cb-burgundy);
}

.rooh-cr-pill.is-active {
  background: var(--rooh-cb-burgundy);
  border-color: var(--rooh-cb-burgundy);
  color: #ffffff;
  font-weight: 600;
}

/* Measurements Section Header & Toggle */
.rooh-cb-measure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rooh-cb-measure-header .rooh-cb-block-title {
  margin: 0;
}

.rooh-cr-unit-toggle {
  display: inline-flex;
  border: 1px solid var(--rooh-cb-input-border);
  border-radius: 4px;
  overflow: hidden;
}

.rooh-cr-unit-btn {
  background: #ffffff;
  border: none;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #555555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rooh-cr-unit-btn.is-active {
  background: var(--rooh-cb-burgundy);
  color: #ffffff;
}

/* 4-Column Measurements Grid (Matches Screenshot) */
.rooh-cb-measurements-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rooh-cb-m-cell {
  display: flex;
  flex-direction: column;
}

.rooh-cb-m-label {
  font-size: 12px;
  font-weight: 600;
  color: #3a2f2d;
  margin-bottom: 5px;
}

.rooh-cb-input-affix {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.rooh-cb-input-affix .rooh-cb-m-input {
  width: 100%;
  padding-right: 36px;
  font-family: var(--rooh-price-font, 'Montserrat', sans-serif);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.rooh-cb-unit-affix {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-left: 1px solid #dcd5ca;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
  text-transform: lowercase;
}

.rooh-cb-m-input {
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

/* Upload Dropzone */
.rooh-cr-dropzone {
  position: relative;
  border: 1.5px dashed var(--rooh-cb-input-border);
  border-radius: 6px;
  padding: 18px 14px;
  text-align: center;
  background: #fdfbf8;
  cursor: pointer;
  transition: border-color 0.2s ease;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rooh-cr-dropzone:hover {
  border-color: var(--rooh-cb-burgundy);
}

.rooh-cr-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.rooh-cr-dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--rooh-cb-burgundy);
}

.rooh-cr-dropzone__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #3a2f2d;
}

.rooh-cr-dropzone__sub {
  font-size: 11px;
  color: #8e827e;
}

.rooh-cr-dropzone__preview {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--rooh-cb-input-border);
  font-size: 12px;
}

.rooh-cr-remove-file {
  background: none;
  border: none;
  font-size: 16px;
  color: #991b1b;
  cursor: pointer;
  padding: 0;
}

/* Helper Callout Box */
.rooh-cb-help-box {
  background: var(--rooh-cb-help-bg);
  border: 1px solid var(--rooh-cb-help-border);
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.rooh-cb-help-icon {
  color: var(--rooh-cb-gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.rooh-cb-help-text {
  font-size: 12.5px;
  color: #5c4f44;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.rooh-cb-help-link {
  color: var(--rooh-cb-burgundy);
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}

.rooh-cb-help-link:hover {
  color: var(--rooh-cb-gold);
}

/* ==========================================================================
   5. FIXED BOTTOM PRICING BREAKDOWN BAR
   ========================================================================== */
.rooh-cb-price-footer-bar {
  background: #ffffff;
  border-top: 2px solid #eadbca;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.rooh-cb-price-calc {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rooh-cb-calc-item {
  display: flex;
  flex-direction: column;
}

.rooh-cb-calc-label {
  font-size: 11px;
  color: #7a6f6d;
}

.rooh-cb-calc-val {
  font-family: var(--rooh-font-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: #231f20;
}

.rooh-cb-calc-op {
  font-size: 16px;
  font-weight: 600;
  color: #a47342;
}

/* ==========================================================================
   FORM BODY & WIZARD STEPS
   ========================================================================== */
.rooh-cb-contact-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

.rooh-cb-style-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 14px;
}

.rooh-cb-style-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rooh-cb-notes-textarea {
  resize: vertical;
  min-height: 110px;
  border-radius: 6px;
  border: 1px solid #d4c8b8;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.rooh-cb-measurements-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-top: 14px;
}

/* ==========================================================================
   FIXED PRICING FOOTER BAR
   ========================================================================== */
.rooh-cb-price-footer-bar {
  position: sticky;
  bottom: 0;
  background: #faf7f2;
  border-top: 1px solid #ebd9c4;
  padding: 14px 24px max(14px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 30;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.rooh-cb-price-calc {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--rooh-font-sans);
}

.rooh-cb-calc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rooh-cb-calc-label {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-transform: capitalize;
  line-height: 1.2;
}

.rooh-cb-calc-val {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  font-family: var(--rooh-price-font, 'Montserrat', sans-serif);
}

.rooh-cb-calc-op {
  color: #94a3b8;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
}

.rooh-cb-calc-item--total .rooh-cb-calc-label {
  color: #1e293b;
  font-weight: 600;
}

.rooh-cb-calc-item--total .rooh-cb-calc-val--total {
  font-size: 18px;
  font-weight: 800;
  color: #0c2340;
}

.rooh-cb-back-step-btn {
  height: 42px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #d4c8b8;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rooh-cb-back-step-btn:hover {
  background: #f1f5f9;
  border-color: #0c2340;
}

.rooh-cb-step-primary-btn {
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  background: #0c2340;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 35, 64, 0.2);
  transition: all 0.2s ease;
}

.rooh-cb-step-primary-btn:hover {
  background: #081a30;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(12, 35, 64, 0.28);
}

.rooh-cb-step-primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   REVIEW STEP STYLES (STEP 4)
   ========================================================================== */
.rooh-cb-review-box {
  background: #fdfbf8;
  border: 1px solid #ebd9c4;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.rooh-cb-review-box__icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #f4ece1;
  color: #8d6034;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rooh-cb-review-box__content {
  flex: 1;
  min-width: 0;
}

.rooh-cb-rev-fabric-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rooh-cb-review-fabric-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #ebd9c4;
  flex-shrink: 0;
}

.rooh-cb-rev-fabric-name {
  font-size: 14.5px;
  color: #1e293b;
  font-weight: 700;
  display: block;
}

.rooh-cb-rev-fabric-sub {
  font-size: 12px;
  color: #64748b;
  display: block;
  margin-bottom: 3px;
}

.rooh-cb-rev-garment-sub {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
}

.rooh-cb-rev-style-sub {
  font-size: 12px;
  color: #64748b;
}

.rooh-cb-review-field-row {
  font-size: 13px;
  line-height: 1.7;
  color: #1e293b;
}

.rooh-cb-review-field-row .rooh-cb-rev-label {
  color: #64748b;
  min-width: 140px;
  display: inline-block;
  font-weight: 500;
}

.rooh-cb-rev-box-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 6px;
}

.rooh-cb-review-measurements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 20px;
  font-size: 13px;
}

.rooh-cb-rev-m-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #ebd9c4;
  padding: 3px 0;
}

.rooh-cb-rev-m-label {
  color: #64748b;
  font-size: 12px;
}

.rooh-cb-rev-m-val {
  font-weight: 700;
  color: #1e293b;
  font-size: 13px;
}

.rooh-cb-edit-step-btn {
  background: none;
  border: none;
  color: #0c2340;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: color 0.15s;
  white-space: nowrap;
}

.rooh-cb-edit-step-btn:hover {
  color: #8d6034;
}

.rooh-cb-confirm-wrap {
  background: #fffdf9;
  border: 1px solid #ebd9c4;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 14px;
}
}

.rooh-cb-confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #231f20;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.45;
}

.rooh-cb-confirm-label input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--rooh-cb-burgundy);
  cursor: pointer;
}

.rooh-cb-video-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #231f20;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.rooh-cb-video-label input {
  accent-color: var(--rooh-cb-burgundy);
  cursor: pointer;
}

.is-invalid {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.rooh-cb-form-status {
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 14px;
  font-size: 13px;
}

.rooh-cb-form-status.is-error {
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
}

.rooh-cb-form-status.is-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 991px) {
  .rooh-cb-hero__layout {
    flex-direction: column;
    text-align: center;
  }
  .rooh-cb-hero__desc {
    margin: 0 auto;
  }
  .rooh-cb-hero__visual {
    justify-content: center;
  }
  .rooh-cb-fabrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rooh-cb-steps-banner {
    flex-direction: column;
    gap: 10px;
  }
  .rooh-cb-step-arrow {
    display: none;
  }
  .rooh-cb-measurements-grid-4col {
    grid-template-columns: repeat(2, 1fr);
  }
  .rooh-cb-price-footer-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .rooh-cb-footer-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .rooh-cb-review-measurements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rooh-cb-hero__title {
    font-size: 32px;
  }
  .rooh-cb-fabrics-grid {
    grid-template-columns: 1fr;
  }
  .rooh-cb-measurements-grid-4col {
    grid-template-columns: 1fr;
  }
  .rooh-cb-review-measurements-grid {
    grid-template-columns: 1fr;
  }
  .rooh-cb-review-details-grid {
    grid-template-columns: 1fr;
  }
  .rooh-cr-row {
    flex-direction: column;
    gap: 10px;
  }
  .rooh-cb-modal-steps-nav {
    flex-wrap: wrap;
    gap: 8px;
  }
  .rooh-cb-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rooh-cb-step-primary-btn,
  .rooh-cb-back-step-btn {
    width: 100%;
    justify-content: center;
  }
}
