/* ══════════════════════════════════════════════
   QHorse – Shared Stylesheet
   ══════════════════════════════════════════════ */

:root {
  --qh-blue:       #191919;
  --qh-blue-dark:  #000000;
  --qh-blue-light: #333333;
  --qh-text:       #222222;
  --qh-border:     #CCCCCC;
  --qh-bg:         #FFFFFF;
  --qh-footer-bg:  #F8F8F8;
}

* { box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--qh-text);
  background: var(--qh-bg);
  margin: 0;
}

h1, h2 { font-family: 'Roboto Slab', serif; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }

/* ── Header ── */
.qh-header {
  background: var(--qh-blue);
  color: #fff;
  padding: 12px 0;
}
.qh-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qh-logo {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qh-logo:hover { color: #fff; }
.qh-logo-icon {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}

.btn-terug {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.btn-terug:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* ── Main container ── */
.qh-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ── Mobile notice ── */
.mobile-notice {
  display: none;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  color: #795548;
  text-align: center;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .mobile-notice { display: block; }
}

/* ── Section spacing ── */
.calc-section {
  margin-bottom: 24px;
}
.calc-section-title {
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--qh-blue);
  border-bottom: 2px solid var(--qh-blue);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Form controls ── */
.form-control, .form-select {
  border: 1px solid var(--qh-border);
  border-radius: 6px;
  font-size: 15px;
  padding: 10px 12px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--qh-blue);
  box-shadow: 0 0 0 3px rgba(25,25,25,.15);
}
.form-label {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}
.form-check-input:checked {
  background-color: var(--qh-blue);
  border-color: var(--qh-blue);
}

/* ── Buttons ── */
.btn-qh {
  background: var(--qh-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s;
  cursor: pointer;
}
.btn-qh:hover {
  background: var(--qh-blue-dark);
  color: #fff;
}
.btn-qh-outline {
  background: transparent;
  color: var(--qh-text);
  border: 1px solid var(--qh-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 15px;
  transition: all .2s;
  cursor: pointer;
}
.btn-qh-outline:hover {
  border-color: var(--qh-blue);
  color: var(--qh-blue);
}

/* ── Price display ── */
.price-card {
  background: var(--qh-blue);
  border-radius: 6px;
  padding: 24px;
  color: #fff;
  text-align: center;
}
.price-amount {
  font-family: 'Roboto Slab', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.breakdown-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 16px;
  padding-top: 8px;
}

/* ── Tariff card ── */
.tariff-card {
  border: 1px solid var(--qh-border);
  border-radius: 6px;
  padding: 20px;
}

/* ── Extra services card ── */
.extras-card {
  background: #F9F9F9;
  border: 1px solid var(--qh-border);
  border-radius: 6px;
  padding: 16px;
}

/* ── Footer ── */
.qh-footer {
  background: var(--qh-footer-bg);
  border-top: 1px solid #E0E0E0;
  padding: 24px 0;
  color: var(--qh-text);
  font-size: 14px;
}
.qh-footer a {
  color: var(--qh-blue);
  text-decoration: none;
}
.qh-footer a:hover {
  text-decoration: underline;
}

/* ── Messages ── */
.messages-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
}

/* ── Distance status ── */
.dist-loading { color: #888; }
.dist-success { color: #2e7d32; }
.dist-error   { color: #c62828; }

/* ── Success page ── */
.success-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 16px;
  min-height: 60vh;
}
.success-icon {
  width: 70px;
  height: 70px;
  background: var(--qh-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.success-icon i {
  font-size: 2rem;
  color: #fff;
}
.summary-card {
  background: #F9F9F9;
  border: 1px solid var(--qh-border);
  border-radius: 6px;
  padding: 24px;
  text-align: left;
  margin-bottom: 24px;
}
.summary-card h2 {
  font-size: 16px;
  color: var(--qh-blue);
  margin-bottom: 16px;
}
.summary-total {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  color: var(--qh-blue);
  font-weight: 700;
}

/* ── Sticky on desktop ── */
@media (min-width: 992px) {
  .price-sticky { position: sticky; top: 80px; }
}
