/*!
 * Solaris Promo Section v1.0.0
 * Centralized lead-capture section for Club Solaris properties.
 *
 * Two templates (getaway / flyaway) × two languages (es / en) share this stylesheet.
 * Everything is scoped to `.sp-root` so the host page's CSS cannot reach in,
 * and `all: revert` + targeted !important defuse hostile global styles
 * (Semantic UI, Bootstrap, Tailwind preflights, etc.).
 */

/* ============================================================
   1. BLINDAJE — reset interno + tipografía base
   ============================================================ */
.sp-root,
.sp-root *,
.sp-root *::before,
.sp-root *::after {
  box-sizing: border-box !important;
}

.sp-root {
  all: initial;
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: var(--sp-text) !important;
  text-align: left !important;
  word-break: normal !important;
  letter-spacing: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
  contain: layout style;
  position: relative;
}

/* Neutralize framework input/button styles before applying our own */
.sp-root input,
.sp-root select,
.sp-root textarea,
.sp-root button,
.sp-root label {
  all: revert;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  margin: 0 !important;
}

.sp-root img,
.sp-root svg {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

.sp-root a {
  text-decoration: none;
  color: var(--sp-primary);
}

.sp-root p {
  margin: 0 0 16px !important;
  color: var(--sp-text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.sp-root h1,
.sp-root h2,
.sp-root h3 {
  margin: 0 0 14px !important;
  color: var(--sp-heading);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
}

.sp-root h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.sp-root h3 {
  font-size: 1.16rem;
}

.sp-root ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
.sp-root {
  --sp-primary: #009a9f;
  --sp-primary-dark: #007d81;
  --sp-secondary: #d4a62a;
  --sp-heading: #12324a;
  --sp-text: #2a3a46;
  --sp-text-soft: #5f6f7c;
  --sp-white: #ffffff;
  --sp-border: #d8e5ea;
  --sp-surface: #f7fbfc;
  --sp-surface-alt: #edf7f9;
  --sp-accent: #fff8e8;
  --sp-error: #d92d20;
  --sp-error-bg: rgba(217, 45, 32, 0.08);
  --sp-success-bg: #e8f5e9;
  --sp-success-border: #4caf50;
  --sp-success-text: #1b5e20;

  --sp-shadow-sm: 0 8px 24px rgba(18, 50, 74, 0.08);
  --sp-shadow-md: 0 20px 50px rgba(18, 50, 74, 0.14);

  --sp-radius-sm: 12px;
  --sp-radius-md: 18px;
  --sp-radius-lg: 28px;
}

/* ============================================================
   3. LAYOUT — section + container + hero grid
   ============================================================ */
.sp-root {
  background:
    radial-gradient(circle at top right, rgba(212, 166, 42, 0.16), transparent 24%),
    linear-gradient(180deg, #effbfc 0%, #ffffff 100%);
  padding: 72px 0;
  margin: 2rem 0;
}

.sp-container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.sp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: start;
}

/* ============================================================
   4. HERO — eyebrow, headline, copy, ctas, badges
   ============================================================ */
.sp-hero {
  max-width: 640px;
  padding-top: 18px;
}

.sp-eyebrow {
  display: inline-block !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--sp-primary) !important;
}

.sp-headline {
  margin-bottom: 14px !important;
  font-size: clamp(1.9rem, 3vw, 2.8rem) !important;
  line-height: 1.12 !important;
  font-weight: 700;
  color: var(--sp-heading);
}

.sp-headline-accent {
  color: var(--sp-primary);
}

.sp-rate-value {
  font-weight: 700;
}

.sp-hero-text {
  margin-bottom: 24px !important;
  font-size: 1.05rem !important;
  color: var(--sp-text-soft);
}

.sp-hero-text strong {
  color: var(--sp-heading);
  font-weight: 700;
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.sp-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none !important;
  font-family: inherit !important;
}

.sp-btn--primary {
  background: var(--sp-primary) !important;
  color: var(--sp-white) !important;
  box-shadow: var(--sp-shadow-sm);
}

.sp-btn--primary:hover {
  background: var(--sp-primary-dark) !important;
  transform: translateY(-1px);
}

.sp-btn--secondary {
  background: var(--sp-white) !important;
  color: var(--sp-primary) !important;
  border-color: var(--sp-primary) !important;
}

.sp-btn--secondary:hover {
  background: #eefafb !important;
  transform: translateY(-1px);
}

.sp-btn--block {
  width: 100%;
}

.sp-btn:disabled,
.sp-btn--loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.sp-badges {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
}

.sp-badges li {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow-sm);
  color: var(--sp-heading);
  font-size: 14px;
  line-height: 1.3;
}

.sp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sp-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sp-accent);
  border: 1px solid #f0dfaa;
  color: var(--sp-heading);
  font-size: 13px;
  font-weight: 700;
}

.sp-hero-image {
  margin-top: 18px;
  border-radius: var(--sp-radius-md);
  box-shadow: var(--sp-shadow-sm);
  width: 100%;
}

/* ============================================================
   5. FORM CARD — container that holds the form
   ============================================================ */
.sp-form-card {
  padding: 28px;
  border-radius: var(--sp-radius-lg);
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  box-shadow: var(--sp-shadow-md);
  position: sticky;
  top: 24px;
}

.sp-form-card h2 {
  font-size: clamp(1.6rem, 2.5vw, 2rem) !important;
  margin-bottom: 10px !important;
}

.sp-form-card__text {
  margin-bottom: 20px !important;
}

.sp-form {
  margin: 0;
}

/* ============================================================
   6. FORM FIELDS — labels, inputs, selects, checkbox, errors
   ============================================================ */
.sp-fields-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sp-field {
  margin-bottom: 14px;
}

.sp-field label {
  display: block !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--sp-heading) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.sp-field input,
.sp-field select,
.sp-field textarea {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border: 1px solid var(--sp-border) !important;
  border-radius: 12px !important;
  background: var(--sp-white) !important;
  color: var(--sp-text) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.sp-field 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 fill='%2312324a' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
}

.sp-field input:focus,
.sp-field select:focus,
.sp-field textarea:focus {
  outline: none !important;
  border-color: rgba(0, 154, 159, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(0, 154, 159, 0.12) !important;
}

.sp-field input::placeholder {
  color: #9aa9b2;
  opacity: 1;
}

.sp-field.sp-field--error input,
.sp-field.sp-field--error select,
.sp-field.sp-field--error textarea {
  border-color: var(--sp-error) !important;
  box-shadow: 0 0 0 4px var(--sp-error-bg) !important;
}

.sp-error {
  display: none;
  margin-top: 6px;
  color: var(--sp-error);
  font-size: 13px;
  line-height: 1.4;
}

.sp-field--error .sp-error {
  display: block;
}

/* ============================================================
   7. CHECKBOX — consent / terms
   ============================================================ */
.sp-consent {
  margin: 12px 0 0;
}

.sp-consent label {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--sp-text-soft) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  cursor: pointer;
}

.sp-consent input[type="checkbox"] {
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  accent-color: var(--sp-primary);
  background: initial !important;
  position: static !important;
}

.sp-consent span {
  display: block;
}

/* ============================================================
   8. SUBMIT + META + THANKS
   ============================================================ */
.sp-form-actions {
  margin-top: 18px;
}

.sp-form-meta {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--sp-heading) !important;
  font-weight: 700;
}

.sp-form-note {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--sp-text-soft);
}

.sp-thanks {
  padding: 20px 0 4px;
}

.sp-thanks h2 {
  margin-bottom: 10px !important;
}

.sp-thanks p {
  color: var(--sp-text-soft);
}

/* ============================================================
   9. HONEYPOT — hidden from humans, visible to bots
   ============================================================ */
.sp-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   10. FLATPICKR — restyle to match
   ============================================================ */
.flatpickr-calendar {
  font-family: inherit !important;
  border-radius: var(--sp-radius-sm) !important;
  box-shadow: var(--sp-shadow-md) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: var(--sp-primary) !important;
  border-color: var(--sp-primary) !important;
}

.flatpickr-day.inRange {
  background: rgba(0, 154, 159, 0.15) !important;
  border-color: rgba(0, 154, 159, 0.15) !important;
  box-shadow: -5px 0 0 rgba(0, 154, 159, 0.15),
               5px 0 0 rgba(0, 154, 159, 0.15) !important;
}

/* ============================================================
   11. intl-tel-input — ensure it plays nicely
   ============================================================ */
.sp-root .iti {
  width: 100% !important;
  display: block !important;
}

.sp-root .iti__country-list {
  font-family: inherit;
  font-size: 14px;
}

.sp-root .iti--separate-dial-code .iti__selected-flag {
  background-color: transparent !important;
}

/* iti mobile dropdown */
.iti-mobile .iti__country-list {
  font-size: 16px;
}

/* ============================================================
   11.5 CONDITIONAL CALLOUTS — resort credit, kids-free
   ============================================================ */
.sp-callouts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 22px;
}

.sp-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sp-accent), #fff);
  border: 1px solid #f0dfaa;
  border-left: 4px solid var(--sp-secondary);
}

.sp-callout-icon {
  font-size: 22px;
  color: var(--sp-secondary);
  flex-shrink: 0;
  line-height: 1.2;
  margin-top: 2px;
  font-weight: 700;
}

.sp-callout-body {
  flex: 1;
  min-width: 0;
}

.sp-callout-title {
  font-weight: 700 !important;
  color: var(--sp-heading) !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  margin: 0 0 4px !important;
}

.sp-callout-text {
  font-size: 13.5px !important;
  color: var(--sp-text-soft) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

.sp-callout--kidsfree {
  background: linear-gradient(135deg, #eef9f4, #fff);
  border-color: #c8e8d8;
  border-left-color: #2e9b6c;
}

.sp-callout--kidsfree .sp-callout-icon {
  color: #2e9b6c;
}

/* Adults-only badge — stands out among other hero badges */
.sp-badges .sp-badge-adults {
  background: linear-gradient(135deg, #f3f0fa, #fff);
  border-color: #d4c5e8;
  color: #4a3a73;
}

/* ============================================================
   11.6 TERMS ACCORDION — native <details>/<summary>
   ============================================================ */
.sp-terms {
  margin: 18px 0 0 !important;
  border-top: 1px solid var(--sp-border);
  padding-top: 14px;
}

.sp-terms summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--sp-primary) !important;
  user-select: none;
  padding: 4px 0;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.sp-terms summary::-webkit-details-marker { display: none; }

.sp-terms summary::after {
  content: '⌄';
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 16px;
  line-height: 1;
  margin-top: -3px;
}

.sp-terms[open] summary::after {
  transform: rotate(180deg);
  margin-top: 2px;
}

.sp-terms summary:hover {
  text-decoration: underline;
}

.sp-terms-body {
  margin-top: 14px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: var(--sp-text-soft) !important;
}

.sp-terms-body h4 {
  font-size: 14px !important;
  margin: 14px 0 6px !important;
  color: var(--sp-heading) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.sp-terms-body h4:first-child {
  margin-top: 0 !important;
}

.sp-terms-body h5 {
  font-size: 13px !important;
  margin: 10px 0 4px !important;
  color: var(--sp-heading) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.sp-terms-body p {
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--sp-text-soft) !important;
}

.sp-terms-body ol,
.sp-terms-body ul {
  list-style: revert !important;
  padding: 0 0 0 22px !important;
  margin: 0 0 12px !important;
}

.sp-terms-body ol { list-style: decimal !important; }
.sp-terms-body ul { list-style: disc !important; }

.sp-terms-body ol ul,
.sp-terms-body ul ul {
  margin: 6px 0 8px !important;
  list-style: disc !important;
}

.sp-terms-body li {
  margin-bottom: 4px;
}

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .sp-grid {
    grid-template-columns: 1fr;
  }

  .sp-form-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .sp-root {
    padding: 56px 0;
  }

  .sp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-actions .sp-btn {
    width: 100%;
  }

  .sp-badges,
  .sp-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-fields-grid {
    grid-template-columns: 1fr;
  }

  .sp-form-card {
    padding: 22px 18px;
  }
}