/* ========================================
   BluSi Order Page Styles
   ======================================== */

/* Keep language toggle visible on small screens (no mobile menu on this page) */
@media (max-width: 768px) {
  .nav__actions .lang-toggle {
    display: inline-flex;
  }
  .nav__actions {
    display: flex !important;
  }
  .nav__actions .nav__auth {
    display: none !important;
  }
}

.order-page {
  padding: 120px 0 80px;
  min-height: 100vh;
  background: var(--background);
}

.order-page__container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.order-page__header {
  text-align: center;
  margin-bottom: 48px;
}

.order-page__back {
  display: inline-block;
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
  text-decoration: none;
}

.order-page__back:hover {
  color: var(--primary-dark);
}

.order-page__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.order-page__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Form Sections ── */

.order-form__section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.order-form__section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* ── Plan Toggle ── */

.order-form__plan-toggle {
  display: flex;
  gap: 12px;
}

.order-form__plan-btn {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-form__plan-btn:hover {
  border-color: var(--primary-light);
  color: var(--text);
}

.order-form__plan-btn--active {
  border-color: var(--primary);
  background: rgba(28, 161, 254, 0.06);
  color: var(--primary);
}

/* ── Grid ── */

.order-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Fields ── */

.order-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-form__field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.order-form__field input,
.order-form__field select,
.order-form__field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease;
  outline: none;
}

.order-form__field input:focus,
.order-form__field select:focus,
.order-form__field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28, 161, 254, 0.1);
}

.order-form__field textarea {
  resize: vertical;
  min-height: 60px;
}

.order-form__error {
  font-size: 13px;
  color: #e74c3c;
  display: none;
}

.order-form__field--error .order-form__error {
  display: block;
}

.order-form__field--error input,
.order-form__field--error textarea {
  border-color: #e74c3c;
}

/* ── Checkbox ── */

.order-form__checkbox-row {
  margin-top: 16px;
}

.order-form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
}

.order-form__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

.order-form__checkbox-hint {
  margin-top: 8px;
  margin-left: 30px;
  font-size: 13px;
  color: var(--text-secondary, #666);
  line-height: 1.5;
}

/* ── Radio Buttons ── */

.order-form__radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-form__radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.order-form__radio:hover {
  border-color: var(--primary-light);
}

.order-form__radio input[type="radio"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.order-form__radio-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.order-form__radio-desc {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ── Price Summary Card ── */

.order-form__price-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.order-form__price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: var(--text);
}

.order-form__price-row--total {
  font-size: 17px;
}

.order-form__price-row--total strong {
  color: var(--primary);
  font-size: 18px;
}

.order-form__price-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── Submit ── */

.order-form__renewal-note {
  font-size: 12px;
  color: var(--text-secondary, #888);
  line-height: 1.5;
  font-style: italic;
}

.order-form__submit-section {
  text-align: center;
  margin-top: 8px;
}

#btnGenerateQuote,
.order-form__submit-section .btn {
  height: 48px;
  box-sizing: border-box;
}

.order-form__disclaimer {
  font-size: 13px;
  color: var(--text-muted);
}

.order-form__login-hint {
  font-size: 14px;
  margin-top: 12px;
}

.order-form__login-hint a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.order-form__login-hint a:hover {
  text-decoration: underline;
}

/* ── Success ── */

.order-form__success {
  text-align: center;
  padding: 48px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.order-form__success-icon {
  margin-bottom: 20px;
}

.order-form__success h2 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 12px;
}

.order-form__success p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.order-form__order-number {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0 24px;
}

/* ── Error Banner ── */

.order-form__error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-top: 16px;
  text-align: center;
}

.order-form__error-banner p {
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .order-page {
    padding: 100px 0 60px;
  }

  .order-form__grid {
    grid-template-columns: 1fr;
  }

  .order-form__plan-toggle {
    flex-direction: column;
  }

  .order-form__section {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .order-page__container {
    padding: 0 16px;
  }

  .order-form__section {
    padding: 16px;
  }

  .order-form__price-card {
    padding: 14px;
  }
}
