/* ==========================================
   STAY — THANK YOU PAGE
   Aesthetic: Warm Off-White, Editorial, Minimalist
   ========================================== */

:root {
  --bg-page: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-input: #F4F1EA;
  --bg-badge: #EFECE5;
  --text-primary: #1C1A17;
  --text-secondary: #6E685F;
  --text-muted: #9E978D;
  --border-color: rgba(28, 26, 23, 0.09);
  --border-active: #1C1A17;
  --accent-black: #1C1A17;
  --accent-white: #FFFFFF;
  --shadow-subtle: 0 10px 30px -5px rgba(28, 26, 23, 0.06);
  --font-serif: "Playfair Display", "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 16px 48px;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.page-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Header bar with Lang Switch */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--bg-badge);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-badge);
  padding: 3px;
  border-radius: var(--radius-pill);
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--accent-black);
  color: var(--accent-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Main Card */
.main-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  text-align: left;
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.hero-text {
  font-size: 0.985rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-text.highlight {
  font-weight: 500;
  color: var(--text-primary);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 28px 0;
}

/* Section Title */
.section-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Guide note for orientation */
.guide-note {
  font-size: 0.885rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.guide-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Preset Options Grid */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.amount-tile {
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 84px;
  user-select: none;
}

.amount-tile:hover {
  background: #EBE7DD;
  transform: translateY(-1px);
}

.amount-tile.selected {
  background: var(--accent-black);
  border-color: var(--accent-black);
  color: var(--accent-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.tile-emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.tile-amount {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tile-label {
  font-size: 0.785rem;
  line-height: 1.3;
  margin-top: 8px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.amount-tile.selected .tile-label {
  color: rgba(255, 255, 255, 0.78);
}

/* Custom Amount Row */
.custom-amount-wrapper {
  margin-bottom: 24px;
}

.custom-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: var(--transition);
}

.custom-input-box:focus-within {
  border-color: var(--accent-black);
  background: var(--bg-card);
}

.custom-currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 8px;
}

.custom-input {
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.custom-input::placeholder {
  font-weight: 400;
  color: var(--text-muted);
}

/* Primary Button (PayPal) */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  background: var(--accent-black);
  color: var(--accent-white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.paypal-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Important Note Callout */
.tip-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FAF3E6;
  border: 1.5px solid #EAD6BC;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 16px;
  text-align: left;
}

.tip-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.tip-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tip-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8C5314;
}

.tip-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #38291B;
}

.tip-desc strong {
  color: #1C150D;
  font-weight: 700;
  background: rgba(220, 155, 60, 0.22);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Alternative Payments Section (Bank & Crypto) */
.alt-payment-section {
  margin-top: 24px;
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
}

.alt-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 4px;
  transition: var(--transition);
}

.alt-accordion-toggle:hover {
  color: var(--text-primary);
}

.accordion-chevron {
  transition: transform 0.25s ease;
}

.alt-accordion-toggle[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

.alt-details-drawer {
  display: none;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.alt-details-drawer.open {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* Segmented Tabs */
.alt-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 4px;
  margin-bottom: 16px;
}

.alt-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.alt-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.alt-tab-panel {
  display: none;
}

.alt-tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Crypto specific styles */
.crypto-network-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.network-tag {
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.crypto-address {
  font-size: 0.78rem !important;
  word-break: break-all;
}

.crypto-tip {
  font-size: 0.785rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-top: 10px;
}

.crypto-tip strong {
  color: var(--text-primary);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.bank-row {
  margin-bottom: 12px;
}

.bank-row:last-child {
  margin-bottom: 0;
}

.bank-label {
  display: block;
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.bank-value-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.bank-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  word-break: break-all;
}

.copy-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: var(--transition);
  margin-left: 8px;
  white-space: nowrap;
}

.copy-btn:hover {
  background: var(--bg-input);
  color: var(--text-primary);
}

.copy-btn.copied {
  color: #1A8754;
}

/* Footer sign-off */
.footer-signoff {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.signoff-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 4px;
}

/* ==========================================
   INTERACTIVE STAY CALCULATOR (index_2.html)
   ========================================== */

.calc-container {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.calc-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.calc-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-label {
  font-size: 0.785rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.stepper-control {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stepper-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  user-select: none;
}

.stepper-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.stepper-btn:active {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
}

.stepper-input {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  -moz-appearance: textfield;
  padding: 0;
}

.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-result-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calc-result-left {
  display: flex;
  flex-direction: column;
}

.calc-result-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.calc-result-total {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

.calc-result-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-black);
  background: var(--bg-badge);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Mobile fine-tuning */
@media (max-width: 440px) {
  .main-card {
    padding: 28px 20px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
}
