.salc-wrap {
  --salc-primary: #0a3454;
  --salc-primary-dark: #041f35;
  --salc-accent: #00a7a5;
  --salc-accent-light: #58d0d0;
  --salc-gold: #d7b46a;
  --salc-bg: #ffffff;
  --salc-form-bg: #072b47;
  --salc-text: #ffffff;
  --salc-label: #ffffff;
  --salc-muted: #c7d8e5;
  --salc-border: #2d5877;
  --salc-field-bg: #ffffff;
  --salc-field-text: #203440;
  --salc-tab-bg: #0b3a5f;
  --salc-button-text: #ffffff;
  --salc-max-width: 980px;
  --salc-form-padding: 16px;
  --salc-radius: 8px;
  --salc-field-height: 40px;
  --salc-columns: 3;
  width: 100%;
  max-width: var(--salc-max-width);
  margin: 16px auto;
  color: var(--salc-text);
  font-family: inherit;
  line-height: 1.45;
  box-sizing: border-box;
}
.salc-wrap *, .salc-wrap *::before, .salc-wrap *::after { box-sizing: border-box; }
.salc-wrap [hidden] { display: none !important; }
.salc-form {
  position: relative;
  margin: 0;
  padding: var(--salc-form-padding);
  border: 1px solid var(--salc-border);
  border-top: 4px solid var(--salc-gold);
  border-radius: var(--salc-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(0,167,165,.14), transparent 34%),
    linear-gradient(145deg, var(--salc-form-bg), var(--salc-primary-dark));
  box-shadow: 0 12px 28px rgba(2, 28, 48, .18);
}
.salc-form-header { margin: 0 0 12px; text-align: center; }
.salc-form-header h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.25; }
.salc-form-header p { margin: 4px 0 0; color: var(--salc-muted); font-size: 12px; }
.salc-service-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(0,0,0,.15);
}
.salc-service-tab { position: relative; margin: 0; cursor: pointer; }
.salc-service-tab input { position: absolute; opacity: 0; pointer-events: none; }
.salc-service-tab span {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #d7e5ee;
  background: var(--salc-tab-bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.salc-service-tab:hover span { color: #fff; border-color: rgba(255,255,255,.18); }
.salc-service-tab.is-active span {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: linear-gradient(135deg, var(--salc-accent), #078488);
  box-shadow: 0 5px 14px rgba(0,167,165,.24);
}
.salc-service-tab input:focus-visible + span { outline: 2px solid var(--salc-gold); outline-offset: 2px; }
.salc-policy-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin: 0 0 11px;
  padding: 8px 10px;
  border: 1px solid rgba(215,180,106,.55);
  border-radius: 6px;
  color: #f7e8c4;
  background: rgba(215,180,106,.10);
  font-size: 11px;
  line-height: 1.45;
}
.salc-policy-icon { color: var(--salc-gold); font-size: 16px; line-height: 1.1; }
.salc-policy-result { grid-column: 2; display: block; margin-top: 2px; font-weight: 700; }
.salc-policy-result.is-valid { color: #8fe2c1; }
.salc-policy-result.is-invalid { color: #ffb8b8; }
.salc-panel { position: relative; }
.salc-panel-heading, .salc-section-title { margin: 0 0 7px; }
.salc-panel-heading h3, .salc-section-title h3 { margin: 0; color: #fff; font-size: 14px; line-height: 1.25; }
.salc-panel-heading p { margin: 2px 0 0; color: var(--salc-muted); font-size: 11px; }
.salc-hide-section-headings .salc-panel-heading,
.salc-hide-section-headings .salc-section-title { display: none; }
.salc-section {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.13);
}
.salc-grid {
  display: grid;
  grid-template-columns: repeat(var(--salc-columns), minmax(0, 1fr));
  gap: 9px 10px;
}
.salc-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.salc-field { position: relative; min-width: 0; }
.salc-field label {
  display: block;
  margin: 0 0 4px;
  color: var(--salc-label);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}
.salc-required { color: #ffcf76; }
.salc-field input,
.salc-field select {
  display: block;
  width: 100%;
  min-height: var(--salc-field-height);
  height: var(--salc-field-height);
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 5px;
  outline: none;
  color: var(--salc-field-text);
  background: var(--salc-field-bg);
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  box-shadow: 0 2px 5px rgba(0,0,0,.07);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.salc-field select { padding-right: 30px; }
.salc-field input:hover, .salc-field select:hover { border-color: var(--salc-accent-light); }
.salc-field input:focus, .salc-field select:focus {
  border-color: var(--salc-accent);
  box-shadow: 0 0 0 3px rgba(0,167,165,.20);
}
.salc-field input::placeholder { color: #8b9aa4; }
.salc-field.is-invalid input, .salc-field.is-invalid select {
  border-color: #e15d5d;
  box-shadow: 0 0 0 3px rgba(225,93,93,.16);
}
.salc-field-error { min-height: 0; margin-top: 3px; color: #ffb8b8; font-size: 10.5px; font-weight: 650; line-height: 1.3; }
.salc-field.is-invalid .salc-field-error { min-height: 13px; }
.salc-autocomplete-field, .salc-flight-field { z-index: 5; }
.salc-autocomplete-field.is-looking-up::after,
.salc-flight-field.is-looking-up::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 27px;
  width: 14px;
  height: 14px;
  border: 2px solid #d5e6e8;
  border-top-color: var(--salc-accent);
  border-radius: 50%;
  animation: salc-spin .7s linear infinite;
  pointer-events: none;
}
.salc-suggestions {
  position: absolute;
  z-index: 1000;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #cad8df;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(2,28,48,.28);
}
.salc-suggestion {
  display: grid;
  grid-template-columns: 58px 1fr;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  color: #203440;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.salc-suggestion:hover, .salc-suggestion.is-highlighted { background: #edf8f8; }
.salc-suggestion strong { color: #073a5a; font-size: 11.5px; }
.salc-suggestion span { color: #61727c; font-size: 11.5px; line-height: 1.35; }
.salc-suggestion-empty { padding: 9px; color: #61727c; font-size: 11.5px; }
.salc-lookup-status { min-height: 0; margin-top: 3px; color: var(--salc-muted); font-size: 10.5px; }
.salc-lookup-status:not(:empty) { min-height: 13px; }
.salc-lookup-status.is-success { color: #8fe2c1; }
.salc-lookup-status.is-error { color: #ffb8b8; }
.salc-form-message { display: none; margin: 11px 0 0; padding: 9px 11px; border-radius: 5px; font-size: 11.5px; font-weight: 700; line-height: 1.45; }
.salc-form-message.is-success { display: block; border: 1px solid #70c9a7; color: #dff8ee; background: rgba(20,119,85,.28); }
.salc-form-message.is-error { display: block; border: 1px solid #e07474; color: #ffe6e6; background: rgba(132,35,35,.32); }
.salc-submit {
  display: inline-flex;
  min-width: 170px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 5px;
  color: var(--salc-button-text);
  background: linear-gradient(135deg, var(--salc-accent), #078488);
  font: inherit;
  font-size: 12.5px;
  font-weight: 850;
  box-shadow: 0 7px 17px rgba(0,167,165,.25);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.salc-submit:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(0,167,165,.32); filter: brightness(1.05); }
.salc-submit:disabled { opacity: .72; cursor: wait; transform: none; }
.salc-spinner { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.42); border-top-color: #fff; border-radius: 50%; animation: salc-spin .7s linear infinite; }
.salc-submit.is-loading .salc-spinner { display: inline-block; }
.salc-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.salc-is-compact .salc-section { margin-top: 9px; padding-top: 9px; }
.salc-is-compact .salc-service-tabs { margin-bottom: 9px; }

/* Thank-you page */
.salc-thank-you-wrap { max-width: 840px; margin-top: 24px; margin-bottom: 24px; color: #203440; }
.salc-thank-you-card {
  overflow: hidden;
  padding: 0 0 24px;
  border: 1px solid #d2dfe5;
  border-top: 5px solid var(--salc-gold);
  border-radius: var(--salc-radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(2,28,48,.14);
  text-align: center;
}
.salc-thank-you-card::before {
  content: "";
  display: block;
  height: 90px;
  margin-bottom: -55px;
  background: linear-gradient(135deg, var(--salc-primary-dark), var(--salc-primary));
}
.salc-success-icon {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  margin-bottom: 11px;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--salc-accent);
  font-size: 27px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.salc-thank-you-card h2 { margin: 0; padding: 0 18px; color: var(--salc-primary-dark); font-size: 24px; line-height: 1.3; }
.salc-thank-you-message { max-width: 640px; margin: 8px auto 0; padding: 0 18px; color: #60747a; font-size: 14px; line-height: 1.6; }
.salc-reference-box { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 13px; border: 1px solid #d6e2e7; border-radius: 5px; background: #f5fafb; }
.salc-reference-box span { color: #6a7d83; font-size: 12px; }
.salc-reference-box strong { color: var(--salc-primary-dark); font-size: 14px; }
.salc-submission-summary { margin: 22px 20px 0; text-align: left; }
.salc-submission-summary h3 { margin: 0 0 10px; color: var(--salc-primary-dark); font-size: 16px; }
.salc-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #d6e2e7; border-radius: 6px; background: #d6e2e7; }
.salc-summary-item { min-width: 0; padding: 10px 12px; background: #fff; }
.salc-summary-item span { display: block; margin-bottom: 3px; color: #6b7d83; font-size: 11px; }
.salc-summary-item strong { display: block; color: #203440; font-size: 13px; line-height: 1.4; word-break: break-word; }
.salc-thank-you-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.salc-thank-you-primary, .salc-thank-you-secondary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 15px; border-radius: 5px; font: inherit; font-size: 12px; font-weight: 750; text-decoration: none !important; cursor: pointer; }
.salc-thank-you-primary { border: 1px solid var(--salc-accent); color: #fff !important; background: var(--salc-accent); }
.salc-thank-you-secondary { border: 1px solid #d6e2e7; color: var(--salc-primary-dark); background: #fff; }
.salc-preview-notice { position: relative; margin: 12px 18px 18px; padding: 9px 11px; border: 1px solid #e2c46b; border-radius: 5px; color: #624c0e; background: #fff8d9; font-size: 12px; text-align: left; }
.salc-unavailable-card { padding-bottom: 24px; }
.salc-unavailable-card h2 { font-size: 21px; }
.salc-unavailable-card p { margin: 7px 0 0; padding: 0 20px; color: #66797f; }
.salc-developer-credit { margin-top: 8px; text-align: right; font-size: 10px; line-height: 1.4; color: #71838a; }
.salc-developer-credit a { color: var(--salc-accent, #00a7a5); text-decoration: none; font-weight: 700; }
.salc-developer-credit a:hover, .salc-developer-credit a:focus { text-decoration: underline; }

@keyframes salc-spin { to { transform: rotate(360deg); } }
@media (max-width: 780px) {
  .salc-wrap { margin: 10px auto; }
  .salc-form { padding: 13px; }
  .salc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .salc-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .salc-service-tab span { min-height: 36px; padding: 6px 4px; font-size: 11.5px; }
  .salc-grid, .salc-grid-four { grid-template-columns: 1fr; gap: 8px; }
  .salc-submit { width: 100%; }
  .salc-summary-grid { grid-template-columns: 1fr; }
  .salc-thank-you-card h2 { font-size: 21px; }
  .salc-policy-notice { grid-template-columns: auto 1fr; }
}
@media print {
  body * { visibility: hidden !important; }
  .salc-thank-you-wrap, .salc-thank-you-wrap * { visibility: visible !important; }
  .salc-thank-you-wrap { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; }
  .salc-thank-you-card { box-shadow: none; }
  .salc-thank-you-actions, .salc-preview-notice { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .salc-wrap *, .salc-wrap *::before, .salc-wrap *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; }
}

/* v1.4: suggestion lists expand the grid instead of covering the next row. */
.salc-autocomplete-field,
.salc-flight-field {
  z-index: auto;
}
.salc-suggestions {
  position: relative;
  z-index: 2;
  top: auto;
  left: auto;
  right: auto;
  width: 100%;
  max-height: 220px;
  margin-top: 5px;
  overflow-y: auto;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(2,28,48,.20);
}
.salc-suggestions[hidden] { display: none !important; }
.salc-suggestions:not([hidden]) { display: block; }

/* v1.4: compact premium lead-time notice. */
.salc-policy-notice {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-color: rgba(215,180,106,.48);
  border-left: 3px solid var(--salc-gold);
  background: linear-gradient(90deg, rgba(215,180,106,.14), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.salc-policy-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(215,180,106,.56);
  border-radius: 50%;
  background: rgba(215,180,106,.12);
}
.salc-policy-content { min-width: 0; }
.salc-policy-title {
  display: block;
  margin: 0 0 2px;
  color: #fff4d7;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: .01em;
}
.salc-policy-content p {
  margin: 0;
  color: #f7e8c4;
  font-size: 11px;
  line-height: 1.45;
}
.salc-policy-result {
  grid-column: auto;
  margin-top: 4px;
  font-size: 10.5px;
}

@media (max-width: 700px) {
  .salc-suggestions { max-height: 190px; }
  .salc-policy-notice { grid-template-columns: 32px minmax(0,1fr); padding: 9px 10px; }
  .salc-policy-icon { width: 28px; height: 28px; }
}
