/* ============================================================
   ZBS Car Orange Theme — Apple-inspired UI Stylesheet
   Design: iOS / visionOS aesthetic × ZBS Car brand identity
   Brand: #fb4919 orange, clean white cards, bold accents
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors - ZBS Orange Light Mode */
  --bg-primary: #fff7f0;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffe8d0;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-border: rgba(251, 73, 25, 0.12);

  /* ZBS Brand Orange replaces Apple Blue as primary accent */
  --accent-blue: #fb4919;
  --accent-blue-hover: #d93a00;

  --accent-green: #34c759;
  --accent-orange: #fb4919;
  --accent-orange-rgb: 251, 73, 25;
  --accent-red: #ff3b30;

  --text-primary: #1a1200;
  --text-secondary: #7a6050;
  --text-tertiary: #b09080;
  --text-inverse: #ffffff;
  --separator: rgba(251, 73, 25, 0.14);

  --shadow-sm: 0 1px 3px rgba(251, 73, 25, 0.06);
  --shadow-md: 0 2px 12px rgba(251, 73, 25, 0.10);
  --shadow-lg: 0 8px 30px rgba(251, 73, 25, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  --font-display: -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-body: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Menlo', monospace;
  --transition-fast: 0.15s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-normal: 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-slow: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Dark Mode (ZBS Dark Orange) --- */
html.dark-mode {
  --bg-primary: #1a0f00;
  --bg-secondary: #2a1800;
  --bg-tertiary: #3a2200;
  --bg-card: rgba(42, 24, 0, 0.90);
  --bg-card-border: rgba(251, 73, 25, 0.18);
  --accent-blue: #ff7a22;
  --accent-blue-hover: #ffaa55;
  --accent-green: #30d158;
  --accent-orange: #ff7a22;
  --accent-red: #ff453a;
  --text-primary: #fff3e8;
  --text-secondary: #c0956a;
  --text-tertiary: #7a5535;
  --text-inverse: #1a0f00;
  --separator: rgba(251, 73, 25, 0.22);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.55);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  background: radial-gradient(circle at 0% 0%, #fe891f, #ed5200);
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* --- Layout Container --- */
.app-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

/* --- Layout Split: Form + Results side by side on desktop --- */
@media (min-width: 768px) {
  .app-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
  }

  .app-header,
  .segmented-control {
    grid-column: 1 / -1;
  }

  .card-apple:first-of-type {
    grid-column: 1;
  }

  .card-apple:last-of-type {
    grid-column: 2;
  }
}

/* --- Page Header --- */
.app-header {
  text-align: center;
  padding: 24px 0 20px;
  margin-bottom: 8px;
  background: transparent;
  border-radius: var(--radius-lg);
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.app-header h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.15);
}

.app-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* --- Theme Toggle Button --- */
.theme-toggle-wrapper {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 9999;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  -webkit-user-select: none;
  user-select: none;
  line-height: 1;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* --- Segmented Control (Route Toggle) --- */
.segmented-control {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.segmented-control-inner {
  display: inline-flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.segmented-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.segmented-btn:hover {
  color: var(--text-primary);
}

.segmented-btn.active {
  background: var(--bg-secondary);
  color: var(--accent-orange);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

/* --- Card Component --- */
.card-apple {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 20px;
  transition: var(--transition-normal);
}

.card-apple:hover {
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--separator);
  padding-left: 10px;
  border-left: 3px solid var(--accent-orange);
  border-radius: 0;
}

/* --- Form Controls (iOS-style) --- */
.form-row-apple {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 20px;
}

/* 50/50 split row for two fields side by side */
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.form-group-apple {
  margin-bottom: 0;
}

.form-group-apple:last-child {
  margin-bottom: 0;
}

.form-label-apple {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin-bottom: 4px;
  padding-left: 2px;
  
}

.form-input-apple {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  outline: none;
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input-apple:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(251, 73, 25, 0.15);
}

.form-input-apple.error {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.form-input-apple::placeholder {
  color: var(--text-tertiary);
}

.form-input-apple-lg {
  font-size: 20px;
  font-weight: 700;
  padding: 12px 16px;
  letter-spacing: -0.022em;
}

/* --- Currency Prefix Wrapper --- */
.input-prefix-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix-wrapper .currency-prefix {
  position: absolute;
  left: 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-tertiary);
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.022em;
}

.input-prefix-wrapper .form-input-apple-lg {
  padding-left: 30px;
  padding-right: 36px;
}

/* --- Clear Button (inside input-prefix-wrapper) --- */
.input-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  display: none;
  z-index: 2;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.85;
}

.input-clear-btn:hover {
  background: #d93a00;
  opacity: 1;
}

.input-clear-btn:active {
  transform: translateY(-50%) scale(0.92);
}

/* --- Select (Native styled) --- */
.form-select-apple {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--separator);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  padding-right: 32px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  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='%2386868b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-select-apple:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(251, 73, 25, 0.15);
}

/* --- Chosen Container (Apple‑style overrides) --- */
.chosen-container {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  text-align: left;
}
.chosen-container .chosen-single {
  height: auto;
  padding: 6px 14px;
  background: var(--bg-secondary) !important;
  border: 1.5px solid var(--separator) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  color: var(--text-primary);
  line-height: 1.5;
}
.chosen-container .chosen-single span {
  color: var(--text-primary);
}
.chosen-container .chosen-single div {
  display: none;
}
.chosen-container .chosen-single abbr {
  top: 10px;
}
.chosen-container.chosen-with-drop .chosen-single {
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(251, 73, 25, 0.15) !important;
}
.chosen-container .chosen-drop {
  background: var(--bg-secondary);
  border: 1.5px solid var(--separator);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  margin-top: -2px;
}
.chosen-container .chosen-search {
  display: none;
}
.chosen-container .chosen-results {
  color: var(--text-primary);
  margin: 0;
  padding: 4px 0;
}
.chosen-container .chosen-results li {
  padding: 8px 14px;
  font-size: 15px;
  line-height: 1.4;
}
.chosen-container .chosen-results li.highlighted {
  background: var(--accent-orange);
  color: #fff;
}
.chosen-container .chosen-results li.result-selected {
  background: rgba(251, 73, 25, 0.12);
  color: var(--accent-orange);
}
.chosen-container .chosen-results li.no-results {
  background: transparent;
  color: var(--text-secondary);
}

/* #address — особый: показать поиск (много опций) */
#address_chosen .chosen-search {
  display: block;
}
/* #address — вернуть стрелку для поискового */
#address_chosen .chosen-single div {
  display: block;
}

/* --- iOS Toggle Switch --- */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.toggle-container input[type="checkbox"] {
  display: none;
}

.toggle-track {
  position: relative;
  width: 36px;
  height: 16px;
  flex-shrink: 0;
  background: var(--bg-tertiary);
  border-radius: 8px;
  transition: var(--transition-normal);
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: var(--transition-normal);
}

.toggle-container input:checked + .toggle-track {
  background: var(--accent-orange);
}

.toggle-container input:checked + .toggle-track::after {
  left: 22px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.toggle-label small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* --- Table (visionOS-inspired) --- */
.table-apple {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-apple thead th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: center;
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--separator);
  cursor: help;
}

.table-apple thead th:first-child {
  text-align: left;
}

.table-apple tbody tr {
  transition: var(--transition-fast);
}

.table-apple tbody tr:hover {
  background: rgba(251, 73, 25, 0.05);
}

.table-apple tbody td {
  padding: 8px 12px;
  text-align: center;
  color: var(--text-primary);
  border-bottom: 1px solid var(--separator);
  vertical-align: middle;
}

.table-apple tbody td:first-child {
  font-weight: 500;
  text-align: left;
  color: var(--text-primary);
  min-width: 200px;
}

.table-apple tbody td:first-child .info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
}

/* --- Tfoot (Total + Summary) --- */
.table-apple tfoot tr:first-child td {
  padding: 14px 12px 10px;
  border-top: 2px solid var(--accent-orange);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-orange);
  text-align: center;
}

.table-apple tfoot tr:first-child td:first-child {
  color: var(--text-primary);
  font-size: 16px;
}

.table-apple tfoot tr.delivery-time td {
  padding: 4px 12px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: none;
}

.table-apple tfoot tr.luxury-tax-row td {

  padding: 4px 12px;
  font-size: 11px;
  color: var(--accent-orange);
  text-align: center;
  border-bottom: none;
}

.table-apple tfoot tr.luxury-tax-row td:first-child {
  color: var(--accent-orange);
  font-weight: 500;
}

/* --- Tfoot Actions Row (copy link + date) --- */
.tfoot-actions-row td {
  padding: 8px 12px 4px !important;
  border-bottom: none !important;
}

.tfoot-actions-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tfoot-actions-cell .calc-date-display {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}


/* --- Copy Link Button --- */
.copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  padding: 0 14px;
  border: none;
  border-radius: 15px;
  background: var(--accent-orange);
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  vertical-align: middle;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.copy-link-btn:hover {
  background: #d93a00;
  color: white;
  box-shadow: 0 2px 8px rgba(251, 73, 25, 0.35);
}

.copy-link-btn:active {
  transform: scale(0.95);
}

/* --- Port Name Sub-label --- */
.port-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Consolidation notice — inherit tooltip-apple styling */

/* --- Tooltip (iOS-style popover) --- */
.tooltip-apple {
  position: relative;
  cursor: help;
}

.tooltip-apple .tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 100;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  white-space: normal;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  pointer-events: none;
  min-width: 250px;
  max-width: 280px;
  text-align: center;

}

.tooltip-apple:hover .tooltip-content,
.tooltip-apple:focus-within .tooltip-content {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Chosen.js Apple Restyle --- */
.chosen-container {
  display: block !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  border: 1.5px solid var(--separator) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-secondary) !important;
  height: auto !important;
  padding: 0 !important;
  transition: var(--transition-fast) !important;
}

.chosen-container.chosen-with-drop {
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(251, 73, 25, 0.15) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.chosen-container .chosen-single {
  display: flex !important;
  align-items: center !important;
  padding: 6px 14px !important;
  padding-right: 32px !important;
  height: auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
}

.chosen-container .chosen-single span {
  margin-right: 0 !important;
  color: var(--text-primary) !important;
}

.chosen-container .chosen-single div {
  width: 12px !important;
  right: 12px !important;
}

.chosen-container .chosen-single div b {
  background: none !important;
  position: relative !important;
}

.chosen-container .chosen-single div b::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 5px solid transparent !important;
  border-right: 5px solid transparent !important;
  border-top: 5px solid var(--text-secondary) !important;
}

.chosen-container.chosen-with-drop .chosen-single div b::after {
  border-top: none !important;
  border-bottom: 5px solid var(--text-secondary) !important;
}

.chosen-container .chosen-drop {
  border: 1.5px solid var(--accent-orange) !important;
  border-top: none !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  background: var(--bg-secondary) !important;
  margin-top: 0 !important;
  margin-left: -1.5px !important;
  width: calc(100% + 3px) !important;
}

.chosen-container .chosen-results {
  color: var(--text-primary) !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  max-height: 240px !important;
}

.chosen-container .chosen-results li {
  padding: 8px 14px !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  color: var(--text-primary) !important;
}

.chosen-container .chosen-results li.highlighted {
  background: rgba(251, 73, 25, 0.10) !important;
  color: var(--accent-orange) !important;
  background-image: none !important;
}

.chosen-container .chosen-results li.result-selected {
  color: var(--text-tertiary) !important;
}

.chosen-container .chosen-search input[type="text"] {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  padding: 8px 12px !important;
  border: 1px solid var(--separator) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  outline: none !important;
}

.chosen-container .chosen-search input[type="text"]:focus {
  border-color: var(--accent-orange) !important;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .app-container {
    padding: 12px 16px 24px;
  }

  .app-header h1 {
    font-size: 22px;
  }

  .card-apple {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .table-apple tbody td {
    padding: 6px 8px;
    font-size: 13px;
  }

  .table-apple tbody td:first-child {
    min-width: 120px;
    font-size: 13px;
  }

  .table-apple thead th {
    font-size: 13px;
    padding: 6px 8px 10px;
  }

  .table-apple tfoot tr:first-child td {
    font-size: 16px;
    padding: 10px 8px 8px;
  }

  .tfoot-actions-row td {
    padding: 6px 8px 2px !important;
  }


  .form-input-apple {
    font-size: 15px;
    padding: 8px 12px;
  }

  .form-input-apple-lg {
    font-size: 18px;
    padding: 10px 14px;
  }

  .segmented-btn {
    font-size: 12px;
    padding: 5px 14px;
  }

  .toggle-track {
    width: 36px;
    height: 16px;
  }

  .toggle-track::after {
    width: 12px;
    height: 12px;
  }

  .toggle-container input:checked + .toggle-track::after {
    left: 22px;
  }

  .theme-toggle-wrapper {
    top: 12px;
    right: 16px;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .card-title {
    flex-wrap: wrap;
  }
}

/* --- Utility --- */
.text-muted-apple {
  color: var(--text-secondary);
}

.text-small {
  font-size: 12px;
}

.fw-semibold {
  font-weight: 600;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 4px; }
.mb-1 { margin-bottom: 4px; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }

/* --- Loading Overlay --- */
.table-loading {
  position: relative;
  min-height: 120px;
}

.table-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid var(--separator);
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  z-index: 11;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Error Toast / Banner --- */
.toast-error {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  animation: fadeIn 0.3s ease-out;
}

.toast-error.show {
  display: flex;
}

.toast-error .toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-red);
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.toast-error .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-size: 16px;
  padding: 0 4px;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.toast-error .toast-close:hover {
  opacity: 1;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card-apple {
  animation: fadeIn 0.4s ease-out;
}

.card-apple:nth-child(2) {
  animation-delay: 0.1s;
}

/* --- Value Update Pulse --- */
@keyframes valuePulse {
  0% { color: var(--accent-orange); }
  100% { color: var(--text-primary); }
}

.value-updated {
  animation: valuePulse 0.6s ease-out;
}

/* --- No Delivery Warning (RO ports without service) --- */
.no-delivery-warning {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.3;
}

.dark-mode .no-delivery-warning {
  color: #ff6b6b;
}

/* --- Snapshot Mode (Saved State) --- */
body.snapshot-mode .form-input-apple,
body.snapshot-mode .form-select-apple {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

body.snapshot-mode .chosen-container {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

body.snapshot-mode .toggle-container {
  pointer-events: none;
  opacity: 0.6;
}

body.snapshot-mode .toggle-container input[type="checkbox"] {
  pointer-events: none;
}

body.snapshot-mode .copy-link-btn {
  pointer-events: none;
  opacity: 0.5;
}

/* Simple mode — hide all non-calculator sections */
body.simple-mode .zbs-hero,
body.simple-mode .zbs-trust-strip,
body.simple-mode .zbs-steps-section,
body.simple-mode .zbs-why-section,
body.simple-mode .zbs-bottom-cta,
body.simple-mode .zbs-footer,
body.simple-mode .zbs-mini-promo {
  display: none !important;
}

body.simple-mode .app-container {
  max-width: 100%;
  padding: 16px;
  margin: 0 auto;
}

.card-apple {
  min-width: 0;
}

/* Snapshot notice inside card-title */
.snapshot-title-notice {
  display: inline;
  margin-left: 4px;
}

.snapshot-title-notice .snapshot-date {
  font-weight: 700;
  color: var(--text-secondary);
}

.snapshot-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  line-height: 1.3;
}

.snapshot-edit-btn:hover {
  background: #d93a00;
  transform: scale(1.05);
}

.snapshot-edit-btn:active {
  transform: scale(0.95);
}

.dark-mode .snapshot-title-notice .snapshot-date {
  color: #aa8870;
}



/* ============================================================
   ZBS Car Extra Orange Brand Touches
   ============================================================ */

/* Card — subtle orange top border accent */
.card-apple {
  border-top: 3px solid rgba(251, 73, 25, 0.18);
}

/* First card (form panel) — stronger orange accent */
.card-apple:first-of-type {
  border-top: 3px solid var(--accent-orange);
}

/* Segmented control track in orange tones */
.segmented-control-inner {
  background: rgba(251, 73, 25, 0.10);
  border: 1px solid rgba(251, 73, 25, 0.18);
}


/* Info icon — orange tint */
.table-apple tbody td:first-child .info-icon {
  background: rgba(251, 73, 25, 0.12) !important;
  color: var(--accent-orange) !important;
}

/* Theme toggle — orange hover */
.theme-toggle-btn:hover {
  color: var(--accent-orange);
  box-shadow: 0 2px 8px rgba(251, 73, 25, 0.2);
  transform: scale(1.05);
}

/* Port name in orange */
.port-name {
  color: var(--accent-orange) !important;
}



/* ============================================================
   ZBS CAR — Orange Brand Theme + Promo Blocks + Compact Table
   ============================================================ */

/* ── Fonts ── */
body, .app-header h1, .card-title, .form-label-apple,
.zbs-hero-title, .zbs-section-title, .zbs-step h3, .zbs-why-card h4 {
  font-family: 'Montserrat', -apple-system, 'Helvetica Neue', sans-serif;
}

/* ── Background: responsive via CSS media query ── */
body {
  background-color: var(--bg-primary);
  background-image: url('img/a2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
#pageContent {
  background-image: url('img/a2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (min-width: 768px) {
  body {
    background-image: url('img/a4.jpeg');
  }
  #pageContent {
    background-image: url('img/a4.jpeg');
  }
}
html.dark-mode body {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('img/a2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
html.dark-mode #pageContent {
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('img/a2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
@media (min-width: 768px) {
  html.dark-mode body {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('img/a4.jpeg');
  }
  html.dark-mode #pageContent {
    background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('img/a4.jpeg');
  }
}



/* ══════════════════════════════════════════
   TOP NAVIGATION BAR
══════════════════════════════════════════ */
.zbs-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(var(--accent-orange-rgb),0.12);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 12px rgba(var(--accent-orange-rgb),0.08);
}

html.dark-mode .zbs-topbar {
  background: #1e1005;
  border-bottom-color: rgba(var(--accent-orange-rgb),0.2);
}

.zbs-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.zbs-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.zbs-logo-zbs {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #1a0e04;
}
html.dark-mode .zbs-logo-zbs { color: #fff; }

.zbs-logo-car {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--accent-orange);
}

.zbs-logo-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.1em;
  margin-left: 4px;
  align-self: flex-end;
  margin-bottom: 2px;
  opacity: 0.7;
}

.zbs-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.zbs-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #5a3a1a;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.15s;
  white-space: nowrap;
}
html.dark-mode .zbs-nav a { color: #c09070; }

.zbs-nav a:hover {
  background: rgba(var(--accent-orange-rgb),0.08);
  color: var(--accent-orange);
}

.zbs-nav a.active {
  color: var(--accent-orange);
  background: rgba(var(--accent-orange-rgb),0.1);
}

.zbs-phone-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  background: var(--accent-orange);
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: 0.2s;
  box-shadow: 0 2px 10px rgba(var(--accent-orange-rgb),0.3);
  flex-shrink: 0;
}
.zbs-phone-btn:hover {
  background: #d93a00;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--accent-orange-rgb),0.4);
}

/* ══════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════ */
.zbs-hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #d93a00 55%, #b83000 100%);
  overflow: hidden;
  padding: 56px 24px 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zbs-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.zbs-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.zbs-shape.s1 { width: 500px; height: 500px; top: -200px; right: -100px; }
.zbs-shape.s2 { width: 300px; height: 300px; bottom: -150px; left: -80px; background: rgba(255,255,255,0.05); }
.zbs-shape.s3 { width: 150px; height: 150px; top: 20px; left: 30%; background: rgba(255,255,255,0.06); }

.zbs-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}

.zbs-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.zbs-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.zbs-hero-accent {
  color: #fff3e0;
}

.zbs-hero-sub {
  color: rgba(255,255,255,0.88);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin: 0 0 32px;
  line-height: 1.55;
}

.zbs-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 16px 32px;
  width: fit-content;
  margin: 0 auto;
}

.zbs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.zbs-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.zbs-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-top: 3px;
  white-space: nowrap;
}

.zbs-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
}

/* theme toggle inside hero */
.zbs-hero .theme-toggle-wrapper {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
}

/* ══════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════ */
.zbs-trust-strip {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(var(--accent-orange-rgb),0.1);
  padding: 0;
}
html.dark-mode .zbs-trust-strip {
  background: rgba(30, 16, 5, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom-color: rgba(var(--accent-orange-rgb),0.2);
}


.zbs-trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.zbs-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #5a3a1a;
  border-right: 1px solid rgba(var(--accent-orange-rgb),0.12);
  white-space: nowrap;
}
.zbs-trust-item:last-child { border-right: none; }
html.dark-mode .zbs-trust-item { color: #c09070; }

/* ══════════════════════════════════════════
   APP CONTAINER — calculator grid
══════════════════════════════════════════ */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

@media (min-width: 900px) {
  .app-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* override header (hero replaces it now, hide original) */
.app-header {
  display: none !important;
}

/* ── Card tweaks — frosted glass ── */
.card-apple {
  border-top: 3px solid rgba(var(--accent-orange-rgb),0.15);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(var(--accent-orange-rgb),0.08);
}
.card-apple:first-of-type { border-top-color: var(--accent-orange); }

html.dark-mode .card-apple {
  background: rgba(30, 16, 5, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1a0e04;
  border-bottom: 1px solid rgba(var(--accent-orange-rgb),0.12);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
html.dark-mode .card-title { color: #ffe5cc; border-bottom-color: rgba(var(--accent-orange-rgb),0.2); }

.card-title-icon {
  font-size: 17px;
}

/* ── Form ── */
.form-label-apple {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a7060;
  line-height: 1.1em;
}
html.dark-mode .form-label-apple { color: #b08060; }

.form-input-apple:focus,
.form-select-apple:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(var(--accent-orange-rgb),0.15);
}

.toggle-container input:checked + .toggle-track {
  background: var(--accent-orange);
}

/* ── Mini promo inside form card ── */
.zbs-mini-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-orange-rgb),0.18);
  border-radius: 12px;
}
html.dark-mode .zbs-mini-promo {
  background: rgba(30, 16, 5, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.zbs-mini-promo-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.zbs-mini-promo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.zbs-mini-promo-text strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1.2;
}

.zbs-mini-promo-text span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #9a7060;
  line-height: 1.4;
}
html.dark-mode .zbs-mini-promo-text span { color: #b08060; }

/* ══════════════════════════════════════════
   TABLE — COMPACT (fits on screen)
══════════════════════════════════════════ */
.table-apple {
  font-size: 13px;
}

.table-apple tbody td {
  padding: 5px 10px;
  border-bottom: 1px solid rgba(var(--accent-orange-rgb),0.07);
  vertical-align: middle;
  line-height: 1.3;
}

.table-apple tbody td:first-child {
  font-weight: 500;
  font-size: 12.5px;
  color: #3a2010;
  min-width: 0;
}
html.dark-mode .table-apple tbody td:first-child { color: #d4b090; }

.table-apple tbody tr:hover {
  background: rgba(var(--accent-orange-rgb),0.04);
}

/* Compact toggles inside table */
.toggle-container {
  gap: 7px;
  padding: 1px 0;
}
.toggle-label {
  font-size: 12.5px;
}
.toggle-track {
  width: 30px;
  height: 18px;
  flex-shrink: 0;
}
.toggle-track::after {
  width: 14px;
  height: 14px;
}
.toggle-container input:checked + .toggle-track::after {
  left: 13px;
}

/* Tfoot compact */
.table-apple tfoot tr:first-child td {
  padding: 10px 10px 8px;
  border-top: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  font-size: 17px;
}
.table-apple tfoot tr:first-child td:first-child {
  color: #1a0e04;
  font-size: 15px;
}
html.dark-mode .table-apple tfoot tr:first-child td:first-child { color: #ffe5cc; }

.table-apple tfoot tr.delivery-time td {
  padding: 3px 10px 6px;
  font-size: 11px;
}

.tfoot-actions-row td {
  padding: 6px 10px 4px !important;
}

/* ══════════════════════════════════════════
   SECTION COMMON STYLES
══════════════════════════════════════════ */
.zbs-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.zbs-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.zbs-section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-orange);
  background: rgba(var(--accent-orange-rgb),0.1);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.zbs-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  color: #1a0e04;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
html.dark-mode .zbs-section-title { color: #ffe5cc; }

/* ══════════════════════════════════════════
   STEPS SECTION
══════════════════════════════════════════ */
.zbs-steps-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 64px 0;
  border-top: 1px solid rgba(var(--accent-orange-rgb),0.1);
}
html.dark-mode .zbs-steps-section {
  background: rgba(30, 16, 5, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top-color: rgba(var(--accent-orange-rgb),0.18);
}


.zbs-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.zbs-step {
  position: relative;
  padding: 28px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-orange-rgb),0.12);
  transition: 0.25s;
}
html.dark-mode .zbs-step {
  background: rgba(30, 16, 5, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(var(--accent-orange-rgb),0.2);
}


.zbs-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(var(--accent-orange-rgb),0.14);
  border-color: rgba(var(--accent-orange-rgb),0.3);
}

.zbs-step-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: rgba(var(--accent-orange-rgb),0.1);
  line-height: 1;
  margin-bottom: 8px;
}

.zbs-step-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.zbs-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1a0e04;
  margin: 0 0 8px;
}
html.dark-mode .zbs-step h3 { color: #ffe5cc; }

.zbs-step p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #7a5a3a;
  margin: 0;
  line-height: 1.55;
}
html.dark-mode .zbs-step p { color: #c09070; }

/* ══════════════════════════════════════════
   WHY ZBS SECTION
══════════════════════════════════════════ */
.zbs-why-section {
  background: rgba(255, 247, 240, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 64px 0;
}
html.dark-mode .zbs-why-section {
  background: rgba(23, 12, 2, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}


.zbs-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .zbs-why-layout { grid-template-columns: 1fr; gap: 32px; }
}

.zbs-why-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zbs-why-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #7a5a3a;
  line-height: 1.65;
  margin: 0;
}
html.dark-mode .zbs-why-desc { color: #c09070; }

.zbs-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--accent-orange);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 0 4px 20px rgba(var(--accent-orange-rgb),0.35);
  width: fit-content;
}
.zbs-cta-btn:hover {
  background: #d93a00;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--accent-orange-rgb),0.45);
}
.zbs-cta-btn-white {
  background: #fff;
  color: var(--accent-orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.zbs-cta-btn-white:hover {
  background: #fff7f0;
  color: #d93a00;
}
.zbs-cta-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: none;
}
.zbs-cta-btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
}

.zbs-why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.zbs-why-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(var(--accent-orange-rgb),0.12);
  border-radius: 14px;
  padding: 20px 18px;
  transition: 0.2s;
}
html.dark-mode .zbs-why-card {
  background: rgba(30, 16, 5, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(var(--accent-orange-rgb),0.2);
}

.zbs-why-card:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 6px 24px rgba(var(--accent-orange-rgb),0.12);
  transform: translateY(-2px);
}

.zbs-why-card-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.zbs-why-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #1a0e04;
  margin: 0 0 6px;
}
html.dark-mode .zbs-why-card h4 { color: #ffe5cc; }

.zbs-why-card p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #7a5a3a;
  margin: 0;
  line-height: 1.5;
}
html.dark-mode .zbs-why-card p { color: #c09070; }

/* ══════════════════════════════════════════
   BOTTOM CTA SECTION
══════════════════════════════════════════ */
.zbs-bottom-cta {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #d93a00 60%, #b83000 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.zbs-bottom-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.zbs-bottom-cta-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -300px;
  right: -200px;
  pointer-events: none;
}

.zbs-bottom-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.zbs-bottom-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
}

.zbs-bottom-cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.zbs-bottom-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.zbs-bottom-badges span {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  padding: 5px 14px;
  border-radius: 20px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.zbs-footer {
  background: #1a0e04;
  padding: 24px;
}
.zbs-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.zbs-footer .zbs-logo-zbs { color: #fff; font-size: 18px; }
.zbs-footer .zbs-logo-car { font-size: 18px; }
.zbs-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  margin-left: auto;
}

/* ══════════════════════════════════════════
   CHOSEN & FORM ORANGE ACCENTS
══════════════════════════════════════════ */
.chosen-container.chosen-with-drop {
  border-color: var(--accent-orange) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-orange-rgb),0.15) !important;
}
.chosen-container .chosen-drop {
  border-color: var(--accent-orange) !important;
}
.chosen-container .chosen-results li.highlighted {
  background: rgba(var(--accent-orange-rgb),0.1) !important;
  color: var(--accent-orange) !important;
}
/* Value pulse animation in orange */
@keyframes valuePulse {
  0% { color: var(--accent-orange); }
  100% { color: var(--text-primary); }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
/* ── WordPress homepage header override ── */
body.home.page header.page-header {
    position: relative !important;
    background: none !important;
}

@media (max-width: 900px) {
  .zbs-nav { display: none; }
  .zbs-trust-item:nth-child(n+3) { display: none; }
  .zbs-hero-stats { padding: 12px 16px; }
  .zbs-stat { padding: 0 14px; }
  .zbs-stat-num { font-size: 22px; }
  .app-container { padding: 16px 16px 16px; }
}

@media (max-width: 600px) {
  .zbs-hero { padding: 40px 16px 36px; }
  .zbs-steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .zbs-why-cards { grid-template-columns: 1fr; }
  .zbs-trust-inner { justify-content: flex-start; overflow-x: auto; }
}