/* Booking Cancellation Phase 2 - Visual Consistency Refinement */

:root {
  --emerald-dark: #08241a;
  --emerald-main: #0e3d2e;
  --emerald-subtle: #144d3b;
  --emerald-light: #e8f0ec;
  --gold-primary: #c49826;
  --gold-accent: #d4af37;
  --gold-soft: #f4e8c1;
  --gold-bg: #fffbf0;
  --ivory-bg: #FAF8F5;
  --surface-card: #ffffff;
  --text-primary: #1a2e26;
  --text-muted: #52685e;
  --border-light: #E6E0D4;
  --border-emerald: #b8d1c6;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 51, 38, 0.04);
  --shadow-md: 0 6px 20px rgba(11, 51, 38, 0.06);
}

body {
  background: var(--ivory-bg) !important;
  color: var(--text-primary) !important;
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
  margin: 0;
}

.container {
  width: min(920px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
  padding: 20px 0 48px !important;
}

.cancellation-wrapper {
  display: grid;
  gap: 16px;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 4px;
}

.page-title {
  margin: 0 0 4px;
  color: var(--emerald-dark);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 800;
}

.page-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Card Base */
.card {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px 22px !important;
  box-shadow: var(--shadow-sm) !important;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px !important;
  color: var(--emerald-dark) !important;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important;
  font-weight: 800 !important;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 6px;
}

/* Fields & Inputs */
.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 750;
  color: var(--emerald-dark);
  font-size: 0.88rem;
}

.input-field {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px !important;
  border: 1px solid #cfc7bc !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
  font: inherit !important;
  font-size: 0.90rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  border-color: var(--gold-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(196, 152, 38, 0.18) !important;
}

textarea.input-field {
  resize: vertical;
  min-height: 75px;
}

/* Buttons */
.btn-primary-lookup {
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--emerald-main);
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(11, 51, 38, 0.15);
  transition: all 0.2s ease;
}

.btn-primary-lookup:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 51, 38, 0.2);
}

.btn-danger-cancellation {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  background: #8b262f;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.94rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(139, 38, 47, 0.18);
  transition: all 0.2s ease;
}

.btn-danger-cancellation:hover {
  background: #6e1d24;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(139, 38, 47, 0.25);
}

/* Privacy & Policy Boxes */
.privacy-note {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #faf7f2;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.80rem;
  line-height: 1.5;
}

.policy-card {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--gold-bg);
  border: 1px solid var(--gold-primary);
}

.policy-title {
  margin: 0 0 8px;
  color: var(--emerald-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.policy-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Booking Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 650px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

.status-item {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #faf7f2;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-item-label {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.status-item-val {
  color: var(--emerald-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

.status-item-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #5c4509;
  font-size: 0.76rem;
  font-weight: 800;
  width: fit-content;
}

/* Financial Breakdown */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .financial-grid {
    grid-template-columns: 1fr;
  }
}

.financial-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8faf9;
  border: 1px solid var(--border-emerald);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.financial-box-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.financial-box-val {
  color: var(--emerald-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.financial-box--refund {
  grid-column: 1 / -1;
  background: var(--gold-bg);
  border: 2px solid var(--gold-primary);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}

.financial-box--refund .financial-box-label {
  color: var(--emerald-dark);
  font-size: 0.94rem;
  font-weight: 800;
}

.financial-box--refund .financial-box-val {
  color: #705206;
  font-size: 1.2rem;
  font-weight: 800;
}

.accept-policy-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #faf7f0;
  border: 1px solid var(--border-light);
  font-size: 0.84rem;
  color: var(--emerald-dark);
  font-weight: 600;
  line-height: 1.5;
}

.accept-policy-box input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold-primary);
}

/* Alerts */
.error-box, .errorlist {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 14px;
  list-style: none;
}

.success-box {
  padding: 18px 22px !important;
  background: #e8f5e9 !important;
  border: 1px solid #a5d6a7 !important;
  border-radius: var(--radius-md) !important;
  color: #1b5e20 !important;
}

.success-box h2 {
  margin: 0 0 10px;
  color: #1b5e20;
  font-size: 1.1rem;
  font-weight: 800;
}

.tracking-nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tracking-nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
}

.tracking-nav-links a:hover {
  color: var(--emerald-dark);
  border-color: var(--border-emerald);
  background: var(--emerald-light);
}

