/* ==========================================================================
   HAINAN TOUR - Reservation Lookup (Member & Non-Member Guest)
   Brand Color Harmony: #176b5a & Clean Minimalist Luxury Layout
   ========================================================================== */

.check-res-section {
  background: #ffffff;
  padding: 64px 0 100px;
  min-height: calc(100vh - 400px);
}

.check-res-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tab Switcher */
.check-res-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 2px solid #e5ebe9;
}

.check-res-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  font-family: inherit;
}

.check-res-tab:hover {
  color: #182421;
  background: #f1f5f9;
}

.check-res-tab.is-active {
  color: #176b5a;
  background: #ffffff;
  border-color: #e5ebe9;
  border-bottom: 3px solid #176b5a;
  margin-bottom: -2px;
  font-weight: 800;
}

/* Card Shell */
.check-res-card {
  background: #ffffff;
  border: 1.5px solid #e6ece9;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.check-res-card__header {
  margin-bottom: 28px;
  text-align: left;
}

.check-res-card__kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #176b5a;
  margin-bottom: 6px;
}

.check-res-card__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #182421;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.check-res-card__desc {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Forms */
.check-res-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.check-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.check-form-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.check-form-label .req {
  color: #e11d48;
}

.check-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.96rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.check-form-input:hover {
  border-color: #94a3b8;
}

.check-form-input:focus {
  border-color: #176b5a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 107, 90, 0.12);
}

.check-form-input::placeholder {
  color: #94a3b8;
}

.check-submit-btn {
  width: 100%;
  padding: 16px;
  background: #165e51;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(22, 94, 81, 0.2);
  margin-top: 10px;
}

.check-submit-btn:hover {
  background: #104b41;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(22, 94, 81, 0.28);
}

/* Info Notice Box */
.check-info-box {
  margin-top: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
}

.check-info-box p {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

.check-info-box a {
  color: #176b5a;
  font-weight: 700;
  text-decoration: underline;
}

/* Result Card */
.res-result-wrap {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: resultSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.res-result-card {
  background: #ffffff;
  border: 1.5px solid #176b5a;
  border-radius: 18px;
  padding: 28px 28px;
  box-shadow: 0 12px 32px rgba(23, 107, 90, 0.08);
  text-align: left;
}

.res-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #edf2f0;
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.res-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #e6f6f3;
  color: #176b5a;
  border: 1px solid #b7ded8;
}

.res-ref-number {
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
}

.res-ref-number span {
  color: #64748b;
  font-weight: 500;
  margin-right: 6px;
}

.res-item-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.res-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.res-grid-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.res-grid-col--full {
  grid-column: 1 / -1;
}

.res-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.res-val {
  font-size: 0.92rem;
  font-weight: 750;
  color: #1e293b;
}

.res-val--highlight {
  color: #176b5a;
  font-weight: 800;
}

.res-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-res-action {
  flex: 1;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-res-action--primary {
  background: #176b5a;
  color: #ffffff;
  border: none;
}

.btn-res-action--primary:hover {
  background: #115346;
}

.btn-res-action--secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-res-action--secondary:hover {
  background: #e2e8f0;
}

.btn-res-action--danger {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-res-action--danger:hover {
  background: #ffe4e6;
}

/* Empty or Error State */
.res-empty-card {
  background: #fff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 24px;
}

.res-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.res-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 8px;
}

.res-empty-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.55;
}

.res-empty-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 640px) {
  .check-res-section {
    padding: 40px 0 72px;
  }
  .check-res-card {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .check-res-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border-bottom: none;
  }
  .check-res-tab {
    justify-content: center;
    padding: 12px 8px;
    font-size: 0.88rem;
    border-radius: 8px;
    border-bottom: 1px solid #e2e8f0;
  }
  .check-res-tab.is-active {
    border-bottom: 1.5px solid #176b5a;
  }
  .res-details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }
  .res-result-actions {
    flex-direction: column;
  }
}
