/* order.css - Modern Stepper Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #050505;
  --surface: rgba(20, 20, 20, 0.7);
  --border: rgba(255, 255, 255, 0.1);
  --accent: #C9A84C;
  --accent-glow: rgba(201, 168, 76, 0.4);
  --text-primary: #F0F0F0;
  --text-secondary: #A0A0A0;
  --glass: blur(12px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(201, 168, 76, 0.03) 0%, transparent 40%);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Progress Header */
.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  width: 10%; 
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
}

.back-btn {
  position: absolute;
  top: 40px;
  left: 24px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.step-counter {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 6px 20px;
  border-radius: 100px;
}

.step-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.02em;
  background: linear-gradient(to bottom, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .step-title { font-size: 28px; }
}

.step-content {
  width: 100%;
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

/* Options Grid */
.lang-grid, .whom-grid, .occasion-grid, .voice-grid, .style-grid, .character-grid {
  display: grid;
  gap: 16px;
}

.lang-grid { grid-template-columns: repeat(3, 1fr); }
.whom-grid { grid-template-columns: repeat(2, 1fr); }
.occasion-grid { grid-template-columns: repeat(2, 1fr); }
.style-grid { 
  grid-template-columns: repeat(4, 1fr); 
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 10px 10px 0;
}
.style-grid::-webkit-scrollbar { width: 4px; }
.style-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.option-card {
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.option-card:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.option-card.selected {
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.08);
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.15);
}

.option-card svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
  transition: 0.3s;
}

.option-card.selected svg {
  filter: drop-shadow(0 0 8px var(--accent));
}

.option-label {
  font-weight: 600;
  font-size: 16px;
}

/* Style Groups */
.style-separator {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-top: 32px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  opacity: 0.8;
}

/* Textarea */
textarea {
  width: 100%;
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.6;
  resize: none;
  min-height: 240px;
  transition: 0.3s;
}

textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.char-counter {
  text-align: right;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Summary Box */
.summary-card {
  background: var(--surface);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.summary-val {
  color: var(--text-secondary);
  font-weight: 600;
}

.price-line {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(201, 168, 76, 0.3);
}

.btn-full {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  height: 60px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 17px;
  margin-top: 40px;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
  border: none;
  cursor: pointer;
}

.btn-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--accent-glow);
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .step-title { font-size: 32px; }
  .order-container { padding: 40px 20px; }
}

/* ─── TOP BAR (logo + lang toggle) ─────────────────────────── */
.top-bar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 200;
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  transition: all 0.2s;
}
.home-link:hover {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.08);
}
.home-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.lang-toggle-order {
  display: flex;
  gap: 2px;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn-order {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.2s;
  font-family: inherit;
}
.lang-btn-order:hover { color: var(--text-primary); }
.lang-btn-order.active {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 10px rgba(201,168,76,0.3);
}

/* ─── BIGGER STEP COUNTER ─────────────────────────── */
.step-counter {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 0.18em !important;
  padding: 10px 28px !important;
  margin-bottom: 28px !important;
}

/* ─── BACK BUTTON repositioned ─────────────────────────── */
.back-btn {
  top: 90px !important;
}

/* ─── ERROR MESSAGE styling ─────────────────────────── */
.error-msg {
  display: none;
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ─── Mobile adjustments ─────────────────────────── */
@media (max-width: 480px) {
  .top-bar { padding: 0 16px; top: 16px; }
  .home-link { font-size: 13px; padding: 8px 14px; }
  .home-link span:not(.home-dot) { font-size: 13px; }
  .lang-btn-order { padding: 5px 11px; font-size: 11px; }
  .step-counter {
    font-size: 16px !important;
    padding: 8px 20px !important;
  }
  .back-btn { top: 75px !important; }
}
