.ctt-widget {
  background: #0396c8;
  padding: 30px 20px 40px;
  margin: 0 -10px 30px;
  color: #fff;
  font-family: Arial, sans-serif;
}

.ctt-search-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ctt-field {
  flex: 1 1 220px;
}

.ctt-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.ctt-search-bottom {
  max-width: 600px;
  margin: 25px auto 0;
  text-align: center;
}

.ctt-btn-primary {
  display: inline-block;
  padding: 14px 40px;
  font-size: 18px;
  font-weight: 600;
  background: #0048aa;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.ctt-price-box {
  margin-top: 12px;
  color: #fff;
  font-size: 18px;
}

.ctt-price-label {
  font-weight: 700;
}

.ctt-price-value {
  margin-top: 4px;
  font-weight: 700;
}

/* Checkout */

.ctt-checkout-wrapper {
  background: #f8fafc;
  padding: 30px 20px 40px;
  margin: 0 -10px 30px;
}

.ctt-summary-box {
  max-width: 1100px;
  margin: 0 auto 25px;
  background: #fff;
  padding: 15px 25px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.ctt-summary-box ul {
  list-style: disc;
  margin-left: 20px;
}

.ctt-checkout-form {
  max-width: 1100px;
  margin: 0 auto;
}

.ctt-checkout-form h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
  text-decoration: underline;
}

.ctt-form-row {
  margin-bottom: 12px;
}

.ctt-form-row label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.ctt-form-row input,
.ctt-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
}

.ctt-btn-submit {
  margin-top: 18px;
  padding: 12px 32px;
  background: #008cdd;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.ctt-notice-success {
  margin: 15px 0;
  padding: 10px 14px;
  background: #d1fae5;
  border-left: 4px solid #10b981;
}

/* Responsive */
@media (max-width: 768px) {
  .ctt-search-bar {
    gap: 10px;
  }
  .ctt-btn-primary {
    width: 100%;
  }
}

/* ========================= */
/*   Thank You Popup Castel */
/* ========================= */

#ctt_thankyou_overlay {
  position: fixed !important;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#ctt_thankyou_overlay.is-visible {
  display: flex;
}

.ctt-thankyou-modal {
  background: #0b0b11;
  border-radius: 22px;
  padding: 24px 24px 20px;
  max-width: 420px;
  width: 92%;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  text-align: center;
  color: #f9fafb;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.ctt-thankyou-close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
}

.ctt-thankyou-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  border: 2px solid #facc15;
  color: #facc15;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctt-thankyou-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.ctt-thankyou-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #e5e7eb;
}

.ctt-thankyou-summary {
  text-align: right;
  direction: rtl;
  font-size: 13px;
  color: #f9fafb;
  background: #111827;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.ctt-thankyou-summary p {
  margin: 4px 0;
}

.ctt-thankyou-actions {
  margin-top: 4px;
}

.ctt-btn-primary.ctt-thankyou-btn,
#ctt_thankyou_overlay .ctt-btn-primary {
  background: var(--ctt-gold);
  color: #111827;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

#ctt_thankyou_overlay .ctt-btn-primary:hover {
  background: #fbbf24;
}
/* ===========================================
   CASTELTRIP – Search widget (light classy)
   =========================================== */

:root {
  --ctt-gold: #f4b000;
  --ctt-gold-soft: #fbbf24;
  --ctt-blue-soft: #e0f2fe;
  --ctt-white: #ffffff;
  --ctt-text-dark: #0f172a;
}

.ctt-search-section {
  margin: 0 auto 40px;
  padding: 0 16px;
}

.ctt-search-card {
  max-width: 1180px;
  margin: 0 auto;
  background: radial-gradient(circle at top left, #ffffff 0%, #f9fafb 40%, #edf2ff 100%);
  border-radius: 26px;
  padding: 24px 26px 20px;
  color: var(--ctt-text-dark);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  overflow: hidden;
}

/* شريط ذهبي رفيع في الأعلى */
.ctt-search-card::before {
  content: "";
  position: absolute;
  inset-inline: 24px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ctt-gold) 0%, var(--ctt-gold-soft) 100%);
}

/* دائرة زرقاء خفيفة للزينة في الخلفية */
.ctt-search-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 60%);
  right: -60px;
  bottom: -80px;
  pointer-events: none;
}

.ctt-search-header {
  margin-bottom: 18px;
}

.ctt-search-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
}

.ctt-search-sub {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

/* GRID */
.ctt-search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ctt-field-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--ctt-gold);
  letter-spacing: 0.03em;
}

/* الحقول */
.ctt-field-control {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 999px;
  padding-inline: 10px;
  padding-block: 4px;
  box-shadow: 0 6px 14px rgba(148, 163, 184, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.ctt-field-icon {
  font-size: 17px;
  margin-inline-end: 6px;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
}

.ctt-field-icon i {
  display: inline-block;
}

.ctt-select {
  border: none;
  background: transparent;
  width: 100%;
  padding: 8px 6px;
  font-size: 14px;
  color: #111827;
  border-radius: 999px;
  outline: none;
  appearance: none;
}

/* Bottom: price + CTA */
.ctt-search-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ctt-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}

.ctt-price-label {
  font-weight: 600;
  color: #111827;
}

.ctt-price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ctt-gold);
}

/* زر الحجز – أصفر مثل الزر في الهيدر */
.ctt-btn-primary {
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  background: var(--ctt-gold);
  color: #111827;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ctt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.4);
  background: var(--ctt-gold-soft);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .ctt-search-card {
    padding: 20px 18px 18px;
  }
  .ctt-search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ctt-search-grid {
    grid-template-columns: 1fr;
  }
  .ctt-search-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .ctt-btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
}
