/* FCL quote + result — background image + glass UI, mobile-first */

body.quote-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #e8eef5;
  background-color: #0f1419;
  /* Anchor top-left so branding (e.g. Antek logo) stays in frame */
  background-image: url('/images/quote-background.jpg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
  background-attachment: fixed;
}

.quote-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Light “wash” over top-left so the logo reads clearly, then darker toward edges */
  background:
    radial-gradient(ellipse 85% 55% at 8% 12%, rgba(255, 255, 255, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 120% 80% at 0% 0%, rgba(230, 238, 248, 0.16) 0%, transparent 42%),
    linear-gradient(
      165deg,
      rgba(8, 14, 22, 0.58) 0%,
      rgba(18, 32, 48, 0.76) 48%,
      rgba(6, 10, 18, 0.9) 100%
    );
}

.container-quote {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding-top: clamp(1.25rem, 5vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 5vw, 2.5rem);
}

.container-result {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding-top: clamp(1.25rem, 5vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 5vw, 2.5rem);
}

.quote-glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.quote-card-header {
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1.25rem, 4vw, 1.75rem) 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

.quote-title {
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.quote-subtitle {
  font-size: 0.9rem;
  color: rgba(232, 238, 245, 0.72);
}

.quote-card-body {
  padding: clamp(1.25rem, 4vw, 1.75rem);
}

.quote-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.35rem;
}

.quote-hint {
  color: rgba(232, 238, 245, 0.55);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.quote-input,
.quote-page .form-select.quote-input,
.quote-page .form-control.quote-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  padding: 0.65rem 0.9rem;
}

/* No chevron: Bootstrap + custom SVG were stacking (VVV look). Clean native-style field. */
.quote-page select.form-select.quote-input,
.quote-page .form-select.quote-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none !important;
  background-repeat: no-repeat !important;
  padding-right: 0.9rem;
}

.quote-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.quote-input:focus,
.quote-page .form-select:focus,
.quote-page .form-control:focus {
  border-color: rgba(120, 190, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(120, 190, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.35);
  background-image: none !important;
  color: #fff;
}

.quote-page .form-select.quote-input option {
  background: #1a2430;
  color: #fff;
}

.btn-submit-quote {
  background: linear-gradient(135deg, #3d7ea6 0%, #2a5a7a 100%);
  color: #fff !important;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 12px;
  margin-top: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-submit-quote:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  color: #fff !important;
}

.quote-page .alert {
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.15);
  color: #ffe9a8;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

/* Result */
.quote-section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: rgba(180, 210, 235, 0.85);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.quote-dl dt {
  color: rgba(232, 238, 245, 0.55);
  font-size: 0.875rem;
  font-weight: 500;
}

.quote-dl dd {
  color: #fff;
  font-size: 0.9rem;
}

.quote-fx {
  color: rgba(232, 238, 245, 0.5);
}

.quote-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
  color: rgba(232, 238, 245, 0.9);
}

.quote-line-compact {
  padding: 0.4rem 0;
  font-size: 0.875rem;
}

/* Accessorial block: compact line spacing (no dividers) */
.quote-accessorial-list {
  margin-top: 0.2rem;
}

.quote-accessorial-item {
  margin: 0;
  padding: 0.12rem 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: rgba(232, 238, 245, 0.9);
  border-bottom: none;
}

.quote-line-total {
  border-bottom: none;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.quote-amt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #b8e0ff;
}

.quote-spacer {
  height: 1.25rem;
}

/* Preserve newlines inside each note string (HTML collapses them without pre-line) */
.quote-notes-block {
  white-space: pre-line;
  color: rgba(232, 238, 245, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.quote-handling {
  font-size: 0.9rem;
  color: rgba(232, 238, 245, 0.88);
  line-height: 1.55;
  white-space: pre-wrap;
}

.quote-copy-source {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-quote-primary {
  background: linear-gradient(135deg, #3d7ea6 0%, #2a5a7a 100%);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 12px;
}

.btn-quote-primary:hover {
  color: #fff !important;
  filter: brightness(1.08);
}

.btn-quote-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
}

.btn-quote-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.btn-quote-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 12px;
}

.btn-quote-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.quote-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media print {
  body.quote-page {
    background: #fff;
    color: #222;
  }
  .quote-backdrop {
    display: none;
  }
  .quote-glass-card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
    color: #222;
  }
  .quote-title,
  .quote-dl dd,
  .quote-line,
  .quote-line-total {
    color: #222;
  }
  .quote-amt {
    color: #0d47a1;
  }
  .result-actions,
  .quote-copy-source,
  .quote-hp {
    display: none !important;
  }
}
