/* ═══════════════════════════════════════════════════════════════
   TICCA — Mobile Wizard Styles
═══════════════════════════════════════════════════════════════ */

/* ── Mobile Wizard Screen ── */
#screen-mobile {
  display: none;
  min-height: 100vh;
  background: var(--paper-warm);
  flex-direction: column;
}

/* ── Mobile Header ── */
.mobile-header {
  background: var(--navy);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-hotel-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}

.mobile-step-indicator {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ── Progress Bar ── */
.mobile-progress {
  height: 3px;
  background: rgba(255,255,255,0.15);
  position: relative;
}

.mobile-progress-bar {
  height: 100%;
  background: var(--gold);
  transition: width 0.4s ease;
}

/* ── Step Container ── */
.wizard-steps {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.wizard-step {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: var(--space-lg);
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.wizard-step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.wizard-step.exiting-left {
  opacity: 0;
  transform: translateX(-30px);
}

/* ── Step Card ── */
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.step-card-header {
  background: var(--navy);
  padding: var(--space-lg);
  color: var(--white);
}

.step-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-card-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.step-card-body {
  padding: var(--space-lg);
}

/* ── Mobile Field Inputs ── */
.mobile-field {
  margin-bottom: var(--space-lg);
}

.mobile-field:last-child {
  margin-bottom: 0;
}

.mobile-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mobile-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-md);
  font-family: var(--font-body);
  font-size: 16px; /* 16px prevents iOS zoom */
  color: var(--text-primary);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}

.mobile-input:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-focus);
  background: var(--white);
}

.mobile-input::placeholder {
  color: var(--text-placeholder);
  font-size: 15px;
}

.mobile-input.is-error {
  border-color: var(--error);
}

/* Card number specific */
.mobile-input--card {
  font-family: 'Courier New', monospace;
  font-size: 18px;
  letter-spacing: 0.12em;
}

/* ── Mobile Stay Table ── */
.mobile-stay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: var(--space-md);
}

.mobile-stay-table th {
  background: var(--paper-warm);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}

.mobile-stay-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule-light);
  font-size: 14px;
  color: var(--text-primary);
  vertical-align: top;
}

.mobile-stay-table td:first-child {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 40%;
}

.mobile-stay-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md);
  background: var(--gold-pale);
  border: 1px solid rgba(184,150,90,0.3);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

.mobile-stay-total-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mobile-stay-total-amount {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Mobile Card Type ── */
.mobile-card-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: var(--space-md);
}

.mobile-card-type {
  cursor: pointer;
  text-align: center;
}

.mobile-card-type input {
  display: none;
}

.mobile-card-type-label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 2px solid var(--rule);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s;
}

.mobile-card-type input:checked + .mobile-card-type-label {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(26,39,68,0.06);
}

/* ── Mobile Camera Capture ── */
.capture-step {
  margin-bottom: var(--space-lg);
}

.capture-step:last-child {
  margin-bottom: 0;
}

.capture-btn {
  width: 100%;
  height: 72px;
  background: var(--white);
  border: 2px dashed var(--rule);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.capture-btn:hover, .capture-btn:active {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--paper);
}

.capture-btn.captured {
  border-color: var(--success);
  border-style: solid;
  background: var(--success-bg);
  color: var(--success);
}

.capture-icon {
  font-size: 24px;
}

.capture-preview {
  margin-top: 8px;
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: none;
  border: 1px solid var(--rule);
}

.capture-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-preview.has-image {
  display: block;
}

/* Hidden file input */
.capture-file-input {
  display: none;
}

/* ── Mobile Signature ── */
.mobile-signature-wrapper {
  border: 2px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  position: relative;
}

.mobile-signature-canvas {
  display: block;
  width: 100%;
  height: 160px;
  touch-action: none;
  cursor: crosshair;
}

.mobile-sig-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── Mobile Terms ── */
.mobile-terms-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--rule-light);
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: var(--space-md);
}

.mobile-terms-text p {
  margin-bottom: var(--space-sm);
}

/* ── Mobile Agreement ── */
.mobile-agreement {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--gold-pale);
  border: 1px solid rgba(184,150,90,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
}

.mobile-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}

.mobile-agreement-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Mobile Review ── */
.mobile-review-section {
  margin-bottom: var(--space-lg);
}

.mobile-review-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.mobile-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-light);
  gap: var(--space-md);
}

.mobile-review-row:last-child {
  border-bottom: none;
}

.mobile-review-key {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.mobile-review-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.mobile-review-masked {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
}

/* ── Mobile Nav ── */
.wizard-nav {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  gap: var(--space-md);
  position: sticky;
  bottom: 0;
  z-index: 50;
}

.btn-wizard-back {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 var(--space-lg);
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-wizard-back:hover {
  border-color: var(--navy);
}

.btn-wizard-next {
  flex: 1;
  height: 52px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-wizard-next:hover:not(:disabled) {
  background: var(--navy-mid);
}

.btn-wizard-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-wizard-submit {
  flex: 1;
  height: 52px;
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-wizard-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Mobile Expiry Banner ── */
.mobile-expiry {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  text-align: center;
  padding: 6px;
}

.mobile-expiry.warning {
  background: var(--warning);
  color: var(--white);
}
