/* ═══════════════════════════════════════════════════════════════
   Kuwait Continental Hotel — Reservation Plugin Styles
   Aesthetic: Refined luxury — warm ivory, deep navy, gold accents
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  --kch-gold:        #C9A84C;
  --kch-gold-light:  #E8D5A3;
  --kch-navy:        #1A2744;
  --kch-navy-mid:    #263356;
  --kch-ivory:       #FAF8F3;
  --kch-ivory-dark:  #F2EDE3;
  --kch-text:        #2A2218;
  --kch-muted:       #7A7060;
  --kch-border:      #E0D8C8;
  --kch-white:       #FFFFFF;
  --kch-error:       #C0392B;
  --kch-success:     #1D6A4A;
  --kch-radius:      12px;
  --kch-radius-sm:   8px;
  --kch-shadow:      0 4px 24px rgba(26,39,68,.10);
  --kch-shadow-lg:   0 16px 60px rgba(26,39,68,.20);
  --kch-font-serif:  'Cormorant Garamond', Georgia, serif;
  --kch-font-sans:   'DM Sans', system-ui, sans-serif;
  --kch-transition:  .2s ease;
}

/* ── Wrapper & Grid ───────────────────────────────────────────── */
.kch-wrapper {
  font-family: var(--kch-font-sans);
  color: var(--kch-text);
  padding: 24px 0;
}

.kch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.kch-no-rooms {
  text-align: center;
  color: var(--kch-muted);
  font-style: italic;
  padding: 48px 0;
}

/* ── Room Card ────────────────────────────────────────────────── */
.kch-card {
  background: var(--kch-white);
  border: 1px solid var(--kch-border);
  border-radius: var(--kch-radius);
  overflow: hidden;
  box-shadow: var(--kch-shadow);
  transition: transform var(--kch-transition), box-shadow var(--kch-transition);
  display: flex;
  flex-direction: column;
  cursor: default;
}

.kch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--kch-shadow-lg);
}

.kch-card.kch-unavailable {
  opacity: .72;
}

/* Card Image */
.kch-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--kch-ivory-dark);
}

.kch-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.kch-card:hover .kch-card-image img {
  transform: scale(1.04);
}

.kch-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kch-muted);
  font-size: 48px;
}

.kch-badge-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--kch-gold);
  color: var(--kch-white);
  font-family: var(--kch-font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.kch-unavail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,39,68,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kch-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Card Body */
.kch-card-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kch-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kch-meta-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--kch-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.kch-card-title {
  font-family: var(--kch-font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--kch-navy);
  margin: 0;
  line-height: 1.25;
}

.kch-card-desc {
  font-size: 13.5px;
  color: var(--kch-muted);
  line-height: 1.6;
  margin: 0;
}

/* Amenities */
.kch-amenities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kch-amenities li {
  background: var(--kch-ivory);
  border: 1px solid var(--kch-border);
  border-radius: 20px;
  font-size: 11.5px;
  color: var(--kch-muted);
  padding: 3px 10px;
}

.kch-amenities li.kch-more {
  color: var(--kch-gold);
  border-color: var(--kch-gold-light);
  background: #FDF8EE;
}

/* Card Footer */
.kch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--kch-border);
  gap: 12px;
}

.kch-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.kch-price-from {
  font-size: 11px;
  color: var(--kch-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.kch-price-amount {
  font-family: var(--kch-font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--kch-navy);
  line-height: 1;
}

.kch-price-unit {
  font-size: 11.5px;
  color: var(--kch-muted);
}

.kch-btn-reserve {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kch-navy);
  color: var(--kch-white);
  border: none;
  border-radius: var(--kch-radius-sm);
  padding: 10px 18px;
  font-family: var(--kch-font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: background var(--kch-transition), transform var(--kch-transition);
  white-space: nowrap;
}

.kch-btn-reserve:hover {
  background: var(--kch-gold);
  transform: translateY(-1px);
}

.kch-btn-unavailable {
  font-size: 12px;
  color: var(--kch-muted);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   Modal
   ══════════════════════════════════════════════════════════════ */
.kch-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--kch-font-sans);
}

.kch-modal[hidden] { display: none !important; }

.kch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,15,30,.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.kch-modal-container {
  position: relative;
  background: var(--kch-white);
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--kch-shadow-lg);
  animation: kchSlideIn .3s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes kchSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Header */
.kch-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--kch-border);
  position: sticky;
  top: 0;
  background: var(--kch-white);
  z-index: 2;
  border-radius: 18px 18px 0 0;
}

.kch-modal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--kch-navy);
  font-family: var(--kch-font-serif);
  font-size: 16px;
  font-weight: 700;
}

.kch-modal-close {
  background: none;
  border: none;
  color: var(--kch-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color var(--kch-transition), background var(--kch-transition);
  display: flex;
  align-items: center;
}

.kch-modal-close:hover {
  color: var(--kch-navy);
  background: var(--kch-ivory);
}

/* Progress Steps Bar */
.kch-steps-bar {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  background: var(--kch-ivory);
  border-bottom: 1px solid var(--kch-border);
  gap: 0;
}

.kch-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kch-step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--kch-muted);
  letter-spacing: .3px;
  white-space: nowrap;
}

.kch-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--kch-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kch-muted);
  background: var(--kch-white);
  transition: all var(--kch-transition);
  flex-shrink: 0;
}

.kch-step.active .kch-step-circle {
  background: var(--kch-navy);
  border-color: var(--kch-navy);
  color: var(--kch-white);
}

.kch-step.active span {
  color: var(--kch-navy);
}

.kch-step.done .kch-step-circle {
  background: var(--kch-gold);
  border-color: var(--kch-gold);
  color: var(--kch-white);
}

.kch-step-line {
  flex: 1;
  height: 2px;
  background: var(--kch-border);
  margin: 0 8px;
  transition: background var(--kch-transition);
}

.kch-step-line.done {
  background: var(--kch-gold);
}

/* Room Summary Strip */
.kch-room-summary-strip {
  background: var(--kch-navy);
  color: var(--kch-white);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kch-rss-name strong {
  font-family: var(--kch-font-serif);
  font-size: 16px;
  font-weight: 600;
}

.kch-rss-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.kch-rss-price .kch-currency {
  font-size: 12px;
  opacity: .8;
}

.kch-rss-price #kch-summary-total {
  font-family: var(--kch-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--kch-gold-light);
}

.kch-rss-price .kch-est {
  font-size: 11px;
  opacity: .7;
}

/* ── Form Steps ───────────────────────────────────────────────── */
.kch-form-step {
  display: none;
  padding: 28px;
  flex-direction: column;
  gap: 18px;
}

.kch-form-step.active {
  display: flex;
}

.kch-step-title {
  font-family: var(--kch-font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--kch-navy);
  margin: 0 0 4px;
}

.kch-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.kch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kch-field-full {
  grid-column: 1 / -1;
}

.kch-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--kch-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.kch-field label span {
  color: var(--kch-gold);
}

.kch-field input,
.kch-field select,
.kch-field textarea {
  font-family: var(--kch-font-sans);
  font-size: 14px;
  color: var(--kch-text);
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--kch-transition), box-shadow var(--kch-transition);
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.kch-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 d='M1 1l5 5 5-5' stroke='%237A7060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.kch-field input:focus,
.kch-field select:focus,
.kch-field textarea:focus {
  border-color: var(--kch-navy);
  background: var(--kch-white);
  box-shadow: 0 0 0 3px rgba(26,39,68,.08);
}

.kch-field input.kch-error,
.kch-field select.kch-error {
  border-color: var(--kch-error);
}

.kch-field input[readonly] {
  background: var(--kch-ivory-dark);
  color: var(--kch-muted);
  cursor: default;
}

.kch-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* Selected Room Card in Step 2 */
.kch-selected-room-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  padding: 14px 16px;
}

.kch-src-icon {
  color: var(--kch-gold);
  flex-shrink: 0;
}

.kch-src-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--kch-muted);
  font-weight: 600;
}

.kch-src-name {
  font-family: var(--kch-font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--kch-navy);
}

.kch-change-room {
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--kch-border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--kch-muted);
  cursor: pointer;
  font-family: var(--kch-font-sans);
  transition: all var(--kch-transition);
}

.kch-change-room:hover {
  border-color: var(--kch-navy);
  color: var(--kch-navy);
}

/* Add-ons */
.kch-addons-section h3 {
  font-family: var(--kch-font-serif);
  font-size: 18px;
  color: var(--kch-navy);
  margin: 0 0 12px;
}

.kch-addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kch-addon-card {
  position: relative;
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  padding: 14px 12px;
  cursor: pointer;
  transition: all var(--kch-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  user-select: none;
}

.kch-addon-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kch-addon-icon {
  font-size: 22px;
  line-height: 1;
}

.kch-addon-info strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--kch-navy);
}

.kch-addon-info span {
  font-size: 11px;
  color: var(--kch-gold);
  font-weight: 500;
}

.kch-addon-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--kch-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--kch-transition);
  background: var(--kch-white);
}

.kch-addon-card:has(input:checked) {
  border-color: var(--kch-gold);
  background: #FDF8EE;
}

.kch-addon-card:has(input:checked) .kch-addon-check {
  background: var(--kch-gold);
  border-color: var(--kch-gold);
  color: var(--kch-white);
}

/* Price Breakdown */
.kch-price-breakdown {
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  padding: 16px 18px;
}

.kch-price-breakdown h4 {
  font-family: var(--kch-font-serif);
  font-size: 16px;
  color: var(--kch-navy);
  margin: 0 0 10px;
}

.kch-pb-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--kch-border);
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.kch-pb-row {
  display: flex;
  justify-content: space-between;
  color: var(--kch-muted);
}

.kch-pb-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--kch-navy);
}

/* Payment Methods */
.kch-payment-methods {
  display: flex;
  gap: 12px;
}

.kch-pm-option {
  flex: 1;
  cursor: pointer;
}

.kch-pm-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.kch-pm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--kch-muted);
  transition: all var(--kch-transition);
  text-align: center;
}

.kch-pm-option:has(input:checked) .kch-pm-card {
  border-color: var(--kch-navy);
  background: rgba(26,39,68,.04);
  color: var(--kch-navy);
}

.kch-pm-icons {
  font-size: 20px;
  line-height: 1;
}

/* Final Summary */
.kch-final-summary {
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  padding: 18px 20px;
}

.kch-final-summary h4 {
  font-family: var(--kch-font-serif);
  font-size: 18px;
  color: var(--kch-navy);
  margin: 0 0 12px;
}

#kch-final-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--kch-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--kch-border);
  margin-bottom: 12px;
}

.kch-fd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kch-fd-row strong {
  color: var(--kch-text);
  font-weight: 500;
}

.kch-fs-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: var(--kch-navy);
  margin-bottom: 10px;
}

.kch-fs-amount {
  font-family: var(--kch-font-serif);
  font-size: 22px;
  color: var(--kch-gold);
}

.kch-fs-note {
  font-size: 12px;
  color: var(--kch-muted);
  margin: 0;
  font-style: italic;
}

/* Form Actions */
.kch-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px 28px;
}

.kch-btn-prev,
.kch-btn-next,
.kch-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--kch-radius-sm);
  font-family: var(--kch-font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--kch-transition);
  border: none;
}

.kch-btn-prev {
  background: var(--kch-ivory);
  color: var(--kch-muted);
  border: 1.5px solid var(--kch-border);
  flex-shrink: 0;
}

.kch-btn-prev:hover {
  border-color: var(--kch-navy);
  color: var(--kch-navy);
}

.kch-btn-next {
  background: var(--kch-navy);
  color: var(--kch-white);
  margin-left: auto;
}

.kch-btn-next:hover {
  background: var(--kch-gold);
}

.kch-btn-submit {
  background: var(--kch-gold);
  color: var(--kch-white);
  margin-left: auto;
}

.kch-btn-submit:hover {
  background: var(--kch-navy);
}

.kch-btn-submit:disabled,
.kch-btn-next:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

/* Error message */
.kch-form-error {
  background: #fde8e8;
  color: var(--kch-error);
  border: 1px solid #f5c6c6;
  border-radius: var(--kch-radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  margin: 0 28px 8px;
}

/* Success Screen */
.kch-success-screen {
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.kch-success-screen[hidden] { display: none !important; }

.kch-success-icon {
  color: var(--kch-success);
  animation: kchPop .4s cubic-bezier(.34,1.56,.64,1) both .1s;
}

@keyframes kchPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}

.kch-success-screen h2 {
  font-family: var(--kch-font-serif);
  font-size: 28px;
  color: var(--kch-navy);
  margin: 0;
}

.kch-success-screen p {
  color: var(--kch-muted);
  font-size: 14px;
  margin: 0;
  max-width: 340px;
}

.kch-success-ref {
  background: var(--kch-ivory);
  border: 1.5px solid var(--kch-border);
  border-radius: var(--kch-radius-sm);
  padding: 12px 28px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--kch-muted);
}

.kch-success-ref strong {
  font-family: var(--kch-font-serif);
  font-size: 20px;
  color: var(--kch-navy);
}

.kch-success-note {
  font-size: 12px !important;
  font-style: italic;
}

.kch-btn-done {
  background: var(--kch-navy);
  color: var(--kch-white);
  border: none;
  border-radius: var(--kch-radius-sm);
  padding: 12px 32px;
  font-family: var(--kch-font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--kch-transition);
  margin-top: 8px;
}

.kch-btn-done:hover {
  background: var(--kch-gold);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .kch-grid {
    grid-template-columns: 1fr;
  }
  .kch-modal {
    padding: 0;
    align-items: flex-end;
  }
  .kch-modal-container {
    max-height: 95vh;
    border-radius: 18px 18px 0 0;
  }
  .kch-form-row {
    grid-template-columns: 1fr;
  }
  .kch-addons-grid {
    grid-template-columns: 1fr;
  }
  .kch-payment-methods {
    flex-direction: column;
  }
  .kch-steps-bar {
    padding: 14px 16px;
  }
  .kch-step span {
    display: none;
  }
  .kch-form-step,
  .kch-form-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}
