/* ==============================================
   CROWN GEM — CUSTOM DESIGN CSS
   Matches Luxury Crown Gems UI Design
   ============================================== */

.custom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.custom-section {
  padding: 60px 0 80px;
  background: #ffffff;
}

.custom-section--alt {
  background: #FAF8F5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== INTRO ===== */
.custom-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.custom-intro h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.custom-intro p {
  font-size: 14.5px;
  color: #555555;
  line-height: 1.68;
}

/* ===== INTERACTIVE 4-STEP BESPOKE BUILDER ===== */
.builder-box {
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.85);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.04);
  margin-bottom: 70px;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

/* Builder Steps Navigation Tabs */
.builder-steps-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(228, 220, 206, 0.8);
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.builder-step-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(228, 220, 206, 0.9);
  font-size: 12px;
  font-weight: 600;
  color: #666666;
  cursor: pointer;
  transition: all var(--transition);
}

.builder-step-tab span.tab-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FAF8F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--gold);
}

.builder-step-tab--active {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
}

.builder-step-tab--active span.tab-num {
  background: #ffffff;
  color: var(--gold);
}

/* Options Grid */
.builder-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.builder-option-card {
  background: #ffffff;
  border: 1.5px solid rgba(228, 220, 206, 0.9);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.builder-option-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.builder-option-card--active {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 2px var(--gold);
}

.builder-option-img-wrap {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: #FAF8F5;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
}

.builder-option-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.builder-option-card:hover .builder-option-img {
  transform: scale(1.08);
}

.builder-option-icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 4px;
}

.builder-option-card h4 {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: #1A1A1A;
}

.builder-option-card span {
  font-size: 11.5px;
  color: #777777;
}

/* Metal Swatch circles */
.metal-color-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Right: Real-time Live Design Summary Preview Card */
.builder-preview-card {
  background: #ffffff;
  border: 1px solid rgba(228, 220, 206, 0.85);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 100px;
}

.builder-preview-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(228, 220, 206, 0.8);
  padding-bottom: 12px;
}

.builder-summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.builder-summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(228, 220, 206, 0.6);
}

.builder-summary-item span:first-child {
  color: #777777;
}

.builder-summary-item span:last-child {
  font-weight: 600;
  color: #1A1A1A;
}

.builder-price-box {
  background: #FAF8F5;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 24px;
  border: 1px solid rgba(228, 220, 206, 0.8);
}

.builder-price-box span {
  font-size: 11.5px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.builder-price-box h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}

.builder-quote-btn {
  width: 100%;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  padding: 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  display: block;
}

.builder-quote-btn:hover {
  background: var(--gold-dark);
}

/* ===== SHOWCASE GALLERY CARDS ===== */
.custom-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.custom-gallery-card {
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.8);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.custom-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
  border-color: var(--gold);
}

.custom-gallery-card__img {
  height: 240px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid rgba(228, 220, 206, 0.6);
}

.custom-gallery-card__img img {
  max-height: 200px;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.custom-gallery-card:hover .custom-gallery-card__img img {
  transform: scale(1.06);
}

.custom-gallery-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.custom-gallery-card__type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.custom-gallery-card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.custom-gallery-card__desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.55;
  margin-bottom: 16px;
}

.custom-gallery-card__specs {
  font-size: 12px;
  color: #777777;
  border-top: 1px solid rgba(228, 220, 206, 0.6);
  padding-top: 12px;
  margin-top: auto;
  font-weight: 500;
}

/* ===== 4-STEP PROCESS CARDS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.process-card {
  background: #ffffff;
  border: 1px solid rgba(228, 220, 206, 0.8);
  border-radius: 14px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.process-step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(198, 154, 89, 0.12);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.process-card h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 12.5px;
  color: #666666;
  line-height: 1.55;
}

/* ===== DIRECT CUSTOM ORDER FORM ===== */
.custom-form-wrap {
  background: #FAF8F5;
  border: 1px solid rgba(228, 220, 206, 0.85);
  border-radius: 20px;
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.custom-form-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 8px;
}

.custom-form-sub {
  font-size: 13.5px;
  color: #555555;
  text-align: center;
  margin-bottom: 36px;
}

.custom-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.custom-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.custom-form-group--full {
  margin-bottom: 24px;
}

.custom-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
}

.custom-form-group label .required {
  color: #E74C3C;
}

.custom-form-group input,
.custom-form-group select,
.custom-form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(228, 220, 206, 0.9);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-family: var(--sans);
  font-size: 13.5px;
  color: #1A1A1A;
  outline: none;
  transition: all var(--transition);
}

.custom-form-group input:focus,
.custom-form-group select:focus,
.custom-form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 154, 89, 0.15);
}

.custom-submit-btn {
  width: 100%;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.custom-submit-btn:hover {
  background: var(--gold-dark);
}

/* Responsive */
@media (max-width: 992px) {
  .builder-layout { grid-template-columns: 1fr; }
  .custom-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .builder-options-grid { grid-template-columns: 1fr; }
  .custom-gallery-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .custom-form-row { grid-template-columns: 1fr; }
  .builder-box, .custom-form-wrap { padding: 24px 18px; }
  .custom-container { padding: 0 20px; }
}
