/* ── BOOK.CSS: Online booking form styles ──────────────────────────────────────
   Design language: white body, navy/blue/red brand, Outfit + DM Sans fonts.
   Loads after theme.css which provides :root tokens.
   ──────────────────────────────────────────────────────────────────────────── */

/* ── MAIN LAYOUT ── */
.book-main { padding: 48px 0 80px; }

.book-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
.book-header { margin-bottom: 36px; }

.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(30,64,175,0.07);
  border: 1px solid rgba(30,64,175,0.2);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.book-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.book-heading em {
  font-style: normal;
  color: var(--blue);
}

.book-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 540px;
  line-height: 1.65;
}

/* ── FORM ERROR ── */
.form-error {
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.25);
  border-left: 4px solid var(--red);
  color: var(--red);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ── LAYOUT: form + sidebar ── */
.book-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ── FORM ── */
.book-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-inline: 1px solid var(--gray-200);
}

.section-legend {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 16px;
}

.required-mark { color: var(--red); font-size: 0.9em; }

/* Field groups */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row { display: flex; gap: 16px; }
.two-col > .field-group { flex: 1; }
.three-col > .field-group { flex: 1; }

label, .field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  font-family: var(--font-body);
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  min-height: 44px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-800);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--gray-300);
}

textarea { resize: vertical; min-height: 80px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-hint {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 2px;
}

/* Glass type selector */
.glass-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.glass-option {
  cursor: pointer;
  position: relative;
}

.glass-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.glass-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  min-height: 80px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--gray-50);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
  cursor: pointer;
}

.glass-option:hover .glass-label,
.glass-option.selected .glass-label {
  border-color: var(--blue);
  background: rgba(30,64,175,0.06);
  box-shadow: 0 0 0 3px rgba(30,64,175,0.1);
}

.glass-icon { font-size: 24px; line-height: 1; }

.glass-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

/* ADAS */
.adas-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adas-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.adas-tooltip-btn {
  background: none;
  border: 1px solid rgba(30,64,175,0.3);
  border-radius: 100px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.adas-tooltip-btn:hover { background: rgba(30,64,175,0.07); }

.adas-tip {
  background: rgba(30,64,175,0.05);
  border: 1px solid rgba(30,64,175,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.55;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--gray-700);
}

.radio-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--blue);
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* Submit button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-submit:active { transform: translateY(0); }

/* ── SIDEBAR ── */
.book-sidebar { position: sticky; top: 74px; }

.trust-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0f172a 100%);
  border-radius: 14px;
  padding: 28px 24px;
  color: #e8e6e1;
}

.trust-badge-row { margin-bottom: 24px; }

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-badge-icon {
  font-size: 28px;
  background: rgba(59,130,246,0.15);
  border-radius: 10px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-badge-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-light);
}

.trust-badge-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.trust-list .check {
  color: var(--blue-light);
  font-weight: 700;
  margin-right: 6px;
}

.trust-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 20px 0;
}

.trust-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.trust-phone {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-light);
  text-decoration: none;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.trust-phone:hover { opacity: 0.8; }

.trust-addr {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── SUCCESS STATE ── */
.success-card {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(30,64,175,0.25);
}

.success-heading {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.success-body {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.success-details {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  text-align: left;
}

.success-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-200);
}

.success-detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--gray-500); }
.detail-value { font-weight: 600; color: var(--gray-800); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  color: var(--gray-700);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  .book-layout {
    grid-template-columns: 1fr;
  }

  .book-sidebar {
    position: static;
    order: 2;
  }

  .book-form { order: 1; }
}

@media (max-width: 600px) {
  .book-main { padding: 32px 0 60px; }

  .book-heading { font-size: 2rem; }

  .glass-grid { grid-template-columns: repeat(2, 1fr); }

  .field-row.two-col,
  .field-row.three-col { flex-direction: column; gap: 12px; }

  .form-section { padding: 20px 16px; }

  .success-card { padding: 32px 20px; }
}

@media (max-width: 380px) {
  .glass-grid { grid-template-columns: repeat(2, 1fr); }
}
