/* =============================================
   FIND ME A CRUISE — RECOMMENDATIONS PAGE
   assets/css/recommendations.css
============================================= */


/* =============================================
   HERO
============================================= */
.rec-hero {
  background: linear-gradient(135deg, #071a39 0%, #0f2d5e 60%, #163a6e 100%);
  display: flex;
  align-items: center;
}

.rec-hero-overlay {
  width: 100%;
  padding: 80px 0 65px;
}

.rec-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.rec-hero-sub {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}


/* =============================================
   THANK YOU
============================================= */
.rec-thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0a1d44;
  color: #c8a96b;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(10,29,68,0.2);
}


/* =============================================
   MATCHED OFFER CARDS (thank-you screen)
============================================= */
.rec-match-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rec-match-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.rec-match-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rec-match-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  margin-bottom: 6px;
}

.rec-match-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1d44;
  margin-bottom: 6px;
  line-height: 1.3;
}

.rec-match-detail {
  font-size: 0.84rem;
  color: #666;
  margin-bottom: 10px;
  flex: 1;
}

.rec-match-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a1d44;
}

.rec-match-price small {
  font-size: 0.82rem;
  font-weight: 400;
  color: #888;
  margin-left: 2px;
}


/* =============================================
   FORM CONTAINER
============================================= */
.rec-form-container {
  max-width: 860px;
}


/* =============================================
   SECTION BLOCKS
============================================= */
.rec-section {
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.rec-section-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.rec-section-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0a1d44;
  color: #c8a96b;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.rec-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a1d44;
  margin-bottom: 4px;
}

.rec-section-hint {
  font-size: 0.88rem;
  color: #777;
  margin: 0;
}


/* =============================================
   OPTION CARDS — SHARED
============================================= */
.rec-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rec-options--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* Hide the native input visually */
.rec-card input[type="radio"],
.rec-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* The card itself */
.rec-card {
  cursor: pointer;
  margin: 0;
  display: block;
}

.rec-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px 16px;
  border: 2px solid #e2e6ef;
  border-radius: 10px;
  background: #fafbfd;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
  min-height: 90px;
  justify-content: center;
  gap: 8px;
  user-select: none;
}

.rec-card:hover .rec-card-inner {
  border-color: #c8a96b;
  background: #fff;
  box-shadow: 0 3px 12px rgba(200,169,107,0.18);
  transform: translateY(-1px);
}

/* Selected state */
.rec-card input:checked ~ .rec-card-inner {
  border-color: #0a1d44;
  background: #f0f3fa;
  box-shadow: 0 0 0 3px rgba(10,29,68,0.1);
}

.rec-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.rec-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0a1d44;
  line-height: 1.3;
}

.rec-card input:checked ~ .rec-card-inner .rec-card-label {
  color: #0a1d44;
}


/* ── Text-only cards (no icon, budget section) ── */
.rec-card--text .rec-card-inner {
  min-height: unset;
  padding: 12px 20px;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
}

.rec-card--text .rec-card-label {
  font-size: 0.9rem;
}

/* ── Checkbox variant — show tick when selected ── */
.rec-card--checkbox .rec-card-inner {
  position: relative;
}

.rec-card--checkbox input:checked ~ .rec-card-inner::after {
  content: '✓';
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c8a96b;
}


/* =============================================
   REASSURANCE STRIP
============================================= */
.bg-navy {
  background: #0a1d44;
}


/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 767px) {
  .rec-section {
    padding: 24px 20px;
  }

  .rec-section-header {
    gap: 14px;
  }

  .rec-options--grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .rec-card-icon {
    font-size: 1.3rem;
  }

  .rec-card-label {
    font-size: 0.8rem;
  }

  .rec-hero-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .rec-options {
    gap: 8px;
  }

  .rec-options--grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-card--text .rec-card-inner {
    padding: 10px 14px;
  }
}
