/**
 * TPMR Booking - Public Frontend CSS
 * Fully scoped under .tpmr-booking-wizard
 * Design Tokens: Gold/Black/White theme
 */

/* Prevent horizontal scrollbar from full-bleed breakout */
html {
  overflow-x: clip;
}

.tpmr-booking-wizard {
  --tpmr-gold: #c9963a;
  --tpmr-gold-light: #d3c4b1;
  --tpmr-gold-glow: rgba(201,150,58,.15);
  --tpmr-black: #1a1c1c;
  --tpmr-white: #FFFFFF;
  --tpmr-bg-surface: #f3f3f3;
  --tpmr-bg-hover: #FDF8EE;
  --tpmr-gray-border: #d3c4b1;
  --tpmr-gray-text: #817565;
  --tpmr-success: #16A34A;
  --tpmr-card-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  --tpmr-radius-card: 20px;
  --tpmr-radius-btn: 12px;
  --tpmr-radius-input: 8px;
  --tpmr-input-height: 48px;
  --tpmr-font-heading: 'Playfair Display', Georgia, serif;
  --tpmr-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Full-bleed breakout from WordPress container */
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tpmr-bg-surface);

  font-family: var(--tpmr-font-body);
  color: var(--tpmr-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tpmr-saas-container {
  max-width: 860px;
  margin: 0 auto;
  display: block; /* Removed grid for steps 1-3 centering */
  padding: 40px 0;
}

/* ─────────────────────────────────────────
   GLOBAL HEADER & TRUST
   ───────────────────────────────────────── */
.tpmr-global-header {
  margin-bottom: 32px;
  text-align: left;
}

.tpmr-global-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--tpmr-black);
  margin: 0 0 12px 0;
}

.tpmr-trust-inline {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.tpmr-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tpmr-gray-text);
}

.tpmr-trust-item svg {
  color: var(--tpmr-success);
}

/* ─────────────────────────────────────────
   SAAS LAYOUT
   ───────────────────────────────────────── */
.tpmr-split-layout {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.tpmr-main-content {
  flex: 1;
  min-width: 0;
}
.tpmr-sidebar-summary {
  flex-shrink: 0;
  width: 360px;
}

.tpmr-main-content {
  min-width: 0;
}

.tpmr-form-card {
  background: var(--tpmr-white);
  border-radius: var(--tpmr-radius-card);
  padding: 24px 32px;
  box-shadow: var(--tpmr-card-shadow);
  border: 1px solid var(--tpmr-gray-border);
}

.tpmr-sidebar-summary {
  position: sticky;
  top: 24px;
}

.tpmr-sticky-panel {
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-card);
  padding: 20px 24px;
  box-shadow: var(--tpmr-card-shadow);
}

.tpmr-summary-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--tpmr-black);
}

.tpmr-summary-subtitle {
  font-size: 13px;
  color: var(--tpmr-gray-text);
  margin: 0 0 24px 0;
}

.tpmr-summary-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--tpmr-gray-border);
  font-size: 13px;
}
.tpmr-summary-row:last-of-type {
  border-bottom: none;
}

.tpmr-summary-row .icon-span {
  width: 24px;
  color: var(--tpmr-gray-text);
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.tpmr-summary-row strong {
  color: var(--tpmr-black);
  font-weight: 500;
  flex: 1;
}

.tpmr-summary-row span:not(.icon-span) {
  color: var(--tpmr-gray-text);
  font-weight: 400;
  text-align: right;
}

.tpmr-summary-divider {
  border: none;
  border-top: 1px solid var(--tpmr-gray-border);
  margin: 24px 0;
}

.tpmr-summary-total-group {
  margin-bottom: 32px;
}
.tpmr-summary-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--tpmr-black);
  margin-bottom: 8px;
}
.tpmr-summary-total-val span {
  font-size: 28px;
  font-weight: 700;
  color: var(--tpmr-gold);
}

.tpmr-trust-box {
  background: #FDF8EE;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tpmr-trust-box svg {
  color: var(--tpmr-gold);
  flex-shrink: 0;
}
.tpmr-trust-box p {
  margin: 0;
  font-size: 12px;
  color: var(--tpmr-black);
  line-height: 1.5;
}

@media (min-width: 1100px) {
  /* Removed grid definition, now handled by flex */
}

@media (max-width: 1099px) {
  .tpmr-split-layout {
    flex-direction: column;
  }
  .tpmr-sidebar-summary {
    width: 100%;
    position: static;
  }
  .tpmr-trust-bar {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ─────────────────────────────────────────
   SAAS STEPPER
   ───────────────────────────────────────── */

.tpmr-saas-stepper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-bottom: 16px;
}

.tpmr-saas-stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--tpmr-gray-border);
  z-index: 0;
}

.tpmr-saas-stepper.step-1::before { background: var(--tpmr-gray-border); }
.tpmr-saas-stepper.step-2::before { background: linear-gradient(90deg, var(--tpmr-gold) 0%, var(--tpmr-gold) 33.3%, var(--tpmr-gray-border) 33.3%, var(--tpmr-gray-border) 100%); }
.tpmr-saas-stepper.step-3::before { background: linear-gradient(90deg, var(--tpmr-gold) 0%, var(--tpmr-gold) 66.6%, var(--tpmr-gray-border) 66.6%, var(--tpmr-gray-border) 100%); }
.tpmr-saas-stepper.step-4::before { background: var(--tpmr-gold); }

.tpmr-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  background: transparent;
  width: 25%;
}

.tpmr-stepper-icon {
  width: 28px;
  height: 28px;
  font-family: var(--tpmr-font-body);
  border-radius: 50%;
  background: var(--tpmr-white);
  border: 2px solid var(--tpmr-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--tpmr-gray-text);
  transition: all 0.3s ease;
  position: relative;
}
.tpmr-stepper-icon::before {
  content: '';
  position: absolute;
  top: -6px; left: -6px; right: -6px; bottom: -6px;
  background: var(--tpmr-white);
  border-radius: 50%;
  z-index: -1;
}

.tpmr-stepper-icon svg.check-icon {
  display: none;
}

.tpmr-stepper-item.completed .tpmr-stepper-icon {
  background: var(--tpmr-gold);
  border-color: var(--tpmr-gold);
  color: var(--tpmr-white);
}

.tpmr-stepper-item.completed .step-num { display: none; }
.tpmr-stepper-item.completed svg.check-icon { display: block; }

.tpmr-stepper-item.active .tpmr-stepper-icon {
  background: var(--tpmr-gold);
  border-color: var(--tpmr-gold);
  color: var(--tpmr-white);
  box-shadow: 0 0 0 4px var(--tpmr-gold-glow);
}

.tpmr-stepper-item.active .step-num { display: block; }

.tpmr-stepper-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--tpmr-gray-text);
  white-space: nowrap;
}

.tpmr-stepper-item.active .tpmr-stepper-label {
  color: var(--tpmr-black);
  font-weight: 600;
}

.tpmr-stepper-item.completed .tpmr-stepper-label {
  color: var(--tpmr-black);
}

@media (max-width: 768px) {
  .tpmr-saas-stepper {
    padding: 0;
    margin-bottom: 24px;
  }
  .tpmr-stepper-label {
    display: none;
  }
  .tpmr-stepper-item {
    padding: 0;
  }
  .tpmr-saas-container {
    width: calc(100vw - 24px);
    padding: 24px 0;
  }
  .tpmr-form-card {
    padding: 24px 16px;
  }
  .tpmr-card-grid {
    grid-template-columns: 1fr;
  }
  .tpmr-form-row {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────
   CARD WRAPPER
   ───────────────────────────────────────── */

.tpmr-card {
  background: var(--tpmr-white);
  border-radius: var(--tpmr-radius-card);
  box-shadow: var(--tpmr-card-shadow);
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.tpmr-stepper-divider {
  border: none;
  border-top: 1px solid var(--tpmr-gray-border);
  margin-bottom: 24px;
}

.tpmr-step-title {
  margin: 0 0 8px 0;
  font-family: var(--tpmr-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--tpmr-black);
}

.tpmr-step-subtitle {
  font-size: 14px;
  color: var(--tpmr-gray-text);
  margin: 0 0 24px;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   FORM BLOCKS
   ───────────────────────────────────────── */

.tpmr-form-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--tpmr-gray-border);
}

.tpmr-form-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.tpmr-block-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tpmr-gray-text);
  margin-bottom: 16px;
}

.tpmr-block-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tpmr-block-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--tpmr-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* ─────────────────────────────────────────
   TRANSFER TYPE CARDS
   ───────────────────────────────────────── */

.tpmr-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.tpmr-transfer-card {
  position: relative;
  padding: 16px 12px;
  min-height: 120px;
  border: 2px solid var(--tpmr-gray-border);
  border-radius: 12px;
  background: var(--tpmr-white);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tpmr-transfer-card:hover {
  border-color: var(--tpmr-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tpmr-transfer-card.selected {
  border-color: var(--tpmr-gold);
  background: #FDF8EE;
  color: var(--tpmr-gold);
  box-shadow: 0 4px 15px rgba(201, 150, 58, 0.15);
}

.tpmr-transfer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tpmr-gray-text);
  transition: all 0.25s ease;
  margin-bottom: 4px;
}

.tpmr-transfer-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2.2;
  transition: transform 0.25s ease;
}

.tpmr-transfer-card:hover .tpmr-transfer-icon svg {
  transform: scale(1.1);
}

.tpmr-transfer-card.selected .tpmr-transfer-icon {
  color: var(--tpmr-gold);
}

.tpmr-transfer-label {
  font-size: 13px;
  font-weight: 600;
  color: #4f4537;
}

.tpmr-transfer-desc {
  display: none; /* Hide description in v2 aesthetic */
}

.tpmr-transfer-card.selected .tpmr-transfer-label {
  color: var(--tpmr-black);
}

/* Card Selection Checkmark */
.tpmr-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--tpmr-gray-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--tpmr-white);
  transition: all 0.25s ease;
}

.tpmr-transfer-card.selected .tpmr-card-check {
  border-color: var(--tpmr-gold);
  background: var(--tpmr-gold);
  color: var(--tpmr-white);
}

.tpmr-card-check svg {
  stroke: currentColor;
  stroke-width: 3;
}

/* Horizontal Cards for Trip Format */
.tpmr-card-hz {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  min-height: 80px;
  padding: 16px 24px;
}

.tpmr-card-hz-text {
  display: flex;
  flex-direction: column;
  margin-left: 16px;
  margin-right: auto;
}

.tpmr-card-check-right {
  position: static;
  margin-left: 16px;
}

/* Mobility Profile Horizontal Cards */
.tpmr-card-hz-top {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  min-height: 64px;
  padding: 10px 12px;
}

.tpmr-card-hz-top .tpmr-card-hz-text {
  margin-left: 12px;
}

/* Stepper List (Professional Transport Layout) */
.tpmr-stepper-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.tpmr-stepper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-card);
  padding: 12px 16px;
  min-height: 64px;
}

.tpmr-stepper-info {
  display: flex;
  flex-direction: column;
}

.tpmr-stepper-info .tpmr-stepper-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tpmr-black);
}

.tpmr-stepper-info .tpmr-stepper-desc {
  font-size: 12px;
  color: var(--tpmr-gray-text);
  margin-top: 2px;
}

.tpmr-stepper-row .tpmr-stepper-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

.tpmr-stepper-row .tpmr-stepper-value input {
  font-size: 16px;
  width: 40px;
  text-align: center;
}

/* ─────────────────────────────────────────
   FORM ELEMENTS
   ───────────────────────────────────────── */

.tpmr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.tpmr-dimensions-block .tpmr-form-row {
  gap: 12px;
}

.tpmr-pill-group-large .tpmr-pill {
  min-height: 56px;
  font-size: 14px;
  font-weight: 500;
  padding: 0 24px;
}

.tpmr-form-row.full {
  grid-template-columns: 1fr;
}

.tpmr-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tpmr-label {
  font-size: 11px;
  font-weight: 700;
  color: #4f4537;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.tpmr-input,
.tpmr-select,
.tpmr-textarea {
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1.5px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-input);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--tpmr-font-body);
  background: var(--tpmr-white);
  color: var(--tpmr-black);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tpmr-input:focus,
.tpmr-select:focus,
.tpmr-textarea:focus {
  outline: none !important;
  border-color: var(--tpmr-gold) !important;
  box-shadow: 0 0 0 3px var(--tpmr-gold-glow) !important;
  background: var(--tpmr-white) !important;
}

.tpmr-input-locked {
  background-color: #f3f4f6; /* Soft grey */
  color: #6b7280;
  cursor: not-allowed;
  user-select: none;
}
.tpmr-input-locked:focus {
  border-color: var(--tpmr-gray-border);
  box-shadow: none;
}

.tpmr-input::placeholder {
  color: var(--tpmr-gray-text);
}

.tpmr-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.tpmr-input-with-icon .tpmr-inner-icon {
  position: absolute;
  left: 14px;
  color: var(--tpmr-gray-text);
  pointer-events: none;
}
.tpmr-input-with-icon .tpmr-input {
  padding-left: 42px;
  width: 100%;
}

.tpmr-textarea {
  resize: vertical;
  min-height: 100px;
}

.tpmr-input-valid {
  border-color: var(--tpmr-gold);
  background: #FFFBF0;
}

/* Email input with icon */
.tpmr-email-wrapper {
  position: relative;
}

.tpmr-email-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
  color: var(--tpmr-gray-text);
}

.tpmr-email-icon.valid {
  color: #166534;
  font-weight: 700;
}

input[type="email"].tpmr-input-with-icon {
  padding-left: 40px;
}

/* Validation checkmark icon on the right */
.tpmr-validation-checkmark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #166534;
  font-weight: 700;
  font-size: 16px;
  display: none;
}

.tpmr-input-valid ~ .tpmr-validation-checkmark {
  display: block;
}

.tpmr-help-text {
  font-size: 12px;
  color: var(--tpmr-gray-text);
  font-weight: 400;
}

.tpmr-validation-msg {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #FFFBF0;
  color: var(--tpmr-gold);
  font-weight: 500;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.tpmr-validation-msg::before {
  content: '✓';
  color: #166534;
  font-weight: 700;
}

.tpmr-validation-msg.show {
  max-height: 30px;
}

.tpmr-validation-msg.error {
  background: #FEE;
  color: #d32f2f;
}

.tpmr-validation-msg.error::before {
  content: '✕';
  color: #d32f2f;
}

/* Valid input styling — only applied by JS via class, not native :valid */
.tpmr-input-valid {
  border-color: var(--tpmr-gold);
}

.tpmr-input-valid::after {
  content: '✓';
  color: var(--tpmr-gold);
}

/* Invalid input & card styling */
.tpmr-input-error {
  border-color: #d32f2f !important;
  background-color: #FFF5F5 !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
}

.tpmr-transfer-card.tpmr-card-error,
.tpmr-pill.tpmr-card-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
}

/* ─────────────────────────────────────────
   TOGGLES & PILLS
   ───────────────────────────────────────── */

.tpmr-pill-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tpmr-pill {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border: 2px solid var(--tpmr-gray-border);
  border-radius: 50px;
  background: var(--tpmr-white);
  color: var(--tpmr-gold);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tpmr-pill.active {
  border-color: var(--tpmr-gold);
  background: var(--tpmr-gold);
  color: var(--tpmr-white);
}

/* ─────────────────────────────────────────
   ZONE BADGE
   ───────────────────────────────────────── */

.tpmr-zone-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tpmr-zone-badge.geofence {
  background: #E8F5E9;
  color: #2E7D32;
}

.tpmr-zone-badge.outside {
  background: #FFF3E0;
  color: #E65100;
}

.tpmr-zone-badge::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

/* ─────────────────────────────────────────
   DISTANCE BAR
   ───────────────────────────────────────── */

.tpmr-distance-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--tpmr-gray-bg);
  border-radius: var(--tpmr-radius-input);
  font-size: 13px;
  color: var(--tpmr-black);
  font-weight: 500;
  margin-top: 12px;
}

.tpmr-distance-bar::before {
  content: '📏';
  font-size: 16px;
}

/* ─────────────────────────────────────────
   ROUTE DETAILS TIMELINE (STEP 1)
   ───────────────────────────────────────── */

.tpmr-route-details-box {
  background: #F9FAFB;
  border: 1px solid var(--tpmr-gray-border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.tpmr-route-item {
  display: flex;
  gap: 16px;
  position: relative;
  margin-bottom: 24px;
}

.tpmr-route-item:last-child {
  margin-bottom: 0;
}

.tpmr-route-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tpmr-white);
  font-size: 16px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tpmr-route-icon.pickup {
  background: #DCFCE7;
  border: 1.5px solid #22c55e;
  color: #15803d;
}

.tpmr-route-icon.dropoff {
  background: #FFEDD5;
  border: 1.5px solid #f97316;
  color: #ea580c;
}

.tpmr-route-timeline-line {
  position: absolute;
  left: 40px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: var(--tpmr-gray-border);
  z-index: 1;
}

.tpmr-route-content {
  flex: 1;
  padding-top: 4px;
  position: relative;
}

.tpmr-route-address {
  font-size: 14px;
  font-weight: 600;
  color: var(--tpmr-black);
  margin-bottom: 8px;
}

.tpmr-route-zone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.tpmr-route-zone.geofence {
  background: #E8F5E9;
  color: #2E7D32;
}

.tpmr-route-zone.outside {
  background: #FFF3E0;
  color: #E65100;
}

.tpmr-distance-separator {
  position: relative;
  text-align: center;
  margin: 16px 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

#tpmr-distance-result {
  background: var(--tpmr-white);
  border: 1.5px solid var(--tpmr-gray-border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tpmr-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ─────────────────────────────────────────
   STEPPER
   ───────────────────────────────────────── */

.tpmr-stepper {
  display: flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
}

.tpmr-stepper-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--tpmr-gold);
  color: var(--tpmr-white);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(201, 150, 58, 0.2);
}

.tpmr-stepper-btn:hover {
  background: var(--tpmr-gold-light);
  transform: scale(1.05);
}

.tpmr-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.tpmr-stepper-value {
  min-width: 56px;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
}

.tpmr-stepper-value input {
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  border: none;
  background: transparent;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   PMR DETAIL PANEL
   ───────────────────────────────────────── */

.tpmr-pmr-panel {
  background: #FFFBF0;
  border-left: 4px solid var(--tpmr-gold);
  border-radius: var(--tpmr-radius-input);
  padding: 20px;
  margin-top: 16px;
}

.tpmr-pmr-panel .tpmr-form-block {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(201, 150, 58, 0.2);
}

.tpmr-pmr-panel .tpmr-form-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* PMR dimension inputs — consistent height, no spinners */
.tpmr-pmr-panel .tpmr-input {
  height: 48px;
  box-sizing: border-box;
}

.tpmr-pmr-panel input[type="number"]::-webkit-outer-spin-button,
.tpmr-pmr-panel input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tpmr-pmr-panel input[type="number"] {
  -moz-appearance: textfield;
}

/* ─────────────────────────────────────────
   ADDRESS AUTOCOMPLETE & MAP
   ───────────────────────────────────────── */

.tpmr-hero-map-container {
  position: relative;
  width: 100%;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}

#tpmr-map {
  width: 100%;
  height: 500px;
  border-radius: var(--tpmr-radius-card);
  border: 1px solid var(--tpmr-gray-border);
  z-index: 1;
}

.tpmr-map-overlay-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 340px;
  background: var(--tpmr-white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 10;
  border: 1px solid var(--tpmr-gray-border);
}

.tpmr-route-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tpmr-route-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.tpmr-route-icon.pickup { color: #22c55e; }
.tpmr-route-icon.dropoff { color: #f97316; }

.tpmr-route-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tpmr-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 4px;
}

#tpmr-dropoff-wrapper .tpmr-field-label {
  color: #f97316;
}

.tpmr-address-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tpmr-address-input {
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500;
}

.tpmr-address-input-wrapper .tpmr-input {
  width: 100%;
  border: 1px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-btn);
  padding: 8px 32px 8px 12px;
  height: 48px;
  background: #f8fafc;
  font-size: 14px;
}

.tpmr-target-icon {
  position: absolute;
  right: 12px;
  color: var(--tpmr-gray-text);
  pointer-events: none;
}

.tpmr-route-connector {
  width: 1px;
  height: 16px;
  border-left: 1px dashed var(--tpmr-gray-border);
  margin-left: 11px;
}

.tpmr-map-stats-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--tpmr-radius-btn);
  padding: 12px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 10;
  display: flex;
  gap: 24px;
}

.tpmr-map-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpmr-stat-icon {
  color: var(--tpmr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpmr-stat-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tpmr-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--tpmr-gray-text);
  letter-spacing: 0.5px;
}

.tpmr-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--tpmr-text-main);
}

@media (max-width: 768px) {
  .tpmr-hero-map-container {
    display: flex;
    flex-direction: column;
  }
  
  #tpmr-map {
    height: 300px !important;
  }
  
  .tpmr-address-horizontal-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .tpmr-route-connector-hz {
    transform: rotate(90deg);
    margin: -8px 0;
  }

  .tpmr-map-stats-overlay {
    bottom: 12px;
    right: 12px;
    left: 12px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .tpmr-map-overlay-panel {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 16px;
    box-shadow: none;
    border: 1px solid var(--tpmr-gray-border);
    order: 1;
    background: var(--tpmr-white);
    padding: 20px;
  }

  .tpmr-map-overlay-panel .tpmr-route-details-box {
    padding: 0;
  }

  .tpmr-map-stats-overlay {
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
    margin-top: 16px;
    order: 3;
    justify-content: space-between;
    box-shadow: none;
    border: 1px solid var(--tpmr-gray-border);
    background: var(--tpmr-white);
  }
}

.tpmr-address-field {
  position: relative;
  width: 100%;
}

.tpmr-field-city-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tpmr-gold);
  margin-bottom: 6px;
}

.tpmr-address-input {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 1.5px solid var(--tpmr-gray-border) !important;
  border-radius: var(--tpmr-radius-input) !important;
  background: var(--tpmr-white) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--tpmr-black) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
}

.tpmr-address-input:focus {
  border-color: var(--tpmr-gold) !important;
  box-shadow: 0 0 0 3px var(--tpmr-gold-glow) !important;
  background: var(--tpmr-white) !important;
}

.tpmr-autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  display: none;
  padding: 6px 0;
}

.tpmr-autocomplete-list.show {
  display: block;
}

.tpmr-autocomplete-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.tpmr-autocomplete-item:hover {
  background: #f5f6f8;
}

.tpmr-autocomplete-item:last-child {
  border-bottom: none;
}

.tpmr-autocomplete-pin {
  color: var(--tpmr-gold);
  margin-top: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpmr-autocomplete-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.tpmr-autocomplete-primary {
  font-size: 14px;
  font-weight: 600;
  color: var(--tpmr-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.tpmr-autocomplete-secondary {
  font-size: 12px;
  font-weight: 400;
  color: var(--tpmr-gray-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

/* ─────────────────────────────────────────
   PHONE INPUT WITH PREFIX
   ───────────────────────────────────────── */

.tpmr-phone-wrapper {
  display: flex;
  gap: 0;
  border: 1px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-input);
  overflow: hidden;
}

.tpmr-phone-prefix {
  background: var(--tpmr-gray-bg);
  padding: 12px 14px;
  font-weight: 600;
  color: var(--tpmr-gray-text);
  white-space: nowrap;
  border-right: 1px solid var(--tpmr-gray-border);
}

.tpmr-phone-input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.tpmr-phone-input:focus {
  outline: none;
}

/* ─────────────────────────────────────────
   INVOICE CARD (STEP 4)
   ───────────────────────────────────────── */

.tpmr-step-4-wrapper {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 24px;
}

.tpmr-invoice-dark {
  background: var(--tpmr-black);
  border-radius: var(--tpmr-radius-card);
  padding: 24px;
  color: var(--tpmr-white);
}

.tpmr-invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tpmr-invoice-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.tpmr-invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tpmr-invoice-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpmr-invoice-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
}

.tpmr-invoice-value {
  font-size: 13px;
  font-weight: 500;
}

.tpmr-price-breakdown {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tpmr-breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  gap: 12px;
}

.tpmr-breakdown-line.total {
  font-weight: 700;
  font-size: 20px;
  color: var(--tpmr-gold-light);
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.tpmr-breakdown-label {
  flex: 1;
  text-align: left;
}

.tpmr-breakdown-amount {
  text-align: right;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
}

.tpmr-security-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Summary card (right column) */

.tpmr-summary-card {
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-card);
  padding: 20px;
}

.tpmr-summary-card h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tpmr-gray-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpmr-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tpmr-gray-border);
}

.tpmr-summary-row:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tpmr-summary-label {
  color: var(--tpmr-gray-text);
  font-weight: 500;
}

.tpmr-summary-value {
  font-weight: 600;
  color: var(--tpmr-black);
}

.tpmr-booking-ref-box {
  background: #FDF8EE;
  border: 2px solid var(--tpmr-gold);
  border-radius: var(--tpmr-radius-input);
  padding: 12px 14px;
  text-align: center;
  margin: 16px 0;
}

.tpmr-booking-ref-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tpmr-gray-text);
  display: block;
  margin-bottom: 4px;
}

.tpmr-booking-ref-code {
  font-size: 16px;
  font-weight: 700;
  color: var(--tpmr-gold);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */

.tpmr-btn-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}

.tpmr-btn,
.tpmr-btn-link {
  padding: 14px 28px;
  border-radius: var(--tpmr-radius-btn);
  border: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.tpmr-btn-primary {
  background: var(--tpmr-gold);
  color: var(--tpmr-white);
  border-radius: 50px;
  font-weight: 700;
  width: 280px;
  margin-left: auto;
}

.tpmr-btn-primary:hover {
  background: var(--tpmr-gold-light);
}

.tpmr-btn-primary:disabled {
  background: var(--tpmr-gray-border) !important;
  color: var(--tpmr-gray-text) !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.tpmr-btn-secondary {
  background: var(--tpmr-white);
  color: var(--tpmr-gray-text);
  border: 1px solid var(--tpmr-gray-border);
}

.tpmr-btn-secondary:hover {
  border-color: var(--tpmr-gold);
  color: var(--tpmr-gold);
}

.tpmr-btn-link {
  background: transparent;
  color: var(--tpmr-gray-text);
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.tpmr-btn-link:hover {
  color: var(--tpmr-gold);
}

/* ─────────────────────────────────────────
   LOADING & OVERLAY
   ───────────────────────────────────────── */

.tpmr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tpmr-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.tpmr-spinner-box {
  background: var(--tpmr-white);
  border-radius: var(--tpmr-radius-card);
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tpmr-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--tpmr-gray-border);
  border-top-color: var(--tpmr-gold);
  border-radius: 50%;
  animation: tpmr-spin 1s linear infinite;
}

@keyframes tpmr-spin {
  to {
    transform: rotate(360deg);
  }
}

.tpmr-overlay-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--tpmr-gray-text);
}

/* ─────────────────────────────────────────
   ERROR MESSAGE
   ───────────────────────────────────────── */

.tpmr-error-box {
  background: #FEE;
  border: 1px solid #fcc;
  border-radius: var(--tpmr-radius-input);
  padding: 14px;
  color: #d32f2f;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.tpmr-error-box.show {
  display: block;
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */

@media (max-width: 768px) {
  .tpmr-card {
    padding: 24px;
  }

  .tpmr-step-title {
    font-size: 24px;
  }

  .tpmr-card-grid {
    grid-template-columns: 1fr;
  }

  .tpmr-form-row {
    grid-template-columns: 1fr;
  }

  .tpmr-step-4-wrapper {
    grid-template-columns: 1fr;
  }

  .tpmr-progress {
    padding: 0 12px;
  }

  .tpmr-progress::before {
    left: 12px;
    right: 12px;
  }

  .tpmr-progress-label {
    font-size: 10px;
  }

  .tpmr-pill-group {
    flex-direction: column;
  }

  .tpmr-pill {
    width: 100%;
    text-align: center;
  }

  .tpmr-btn-primary {
    width: 100%;
    margin-left: 0;
  }

  .tpmr-btn-group {
    flex-direction: column-reverse;
  }

  .tpmr-btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tpmr-card {
    padding: 16px;
    border-radius: 12px;
  }

  .tpmr-step-title {
    font-size: 18px;
  }

  .tpmr-step-subtitle {
    font-size: 12px;
  }

  .tpmr-form-block {
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .tpmr-progress-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .tpmr-progress-label {
    font-size: 9px;
  }

  .tpmr-input,
  .tpmr-select,
  .tpmr-textarea,
  .iti__selected-dial-code {
    font-size: 16px !important;
  }
}

/* ─────────────────────────────────────────
   ACCESSIBILITY
   ───────────────────────────────────────── */

.tpmr-booking-wizard *:focus-visible {
  outline: 2px solid var(--tpmr-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .tpmr-booking-wizard * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.iti { width: 100%; }
.iti__selected-flag {
  background-color: transparent !important;
}
.iti__selected-flag:hover,
.iti__selected-flag:focus {
  background-color: rgba(0,0,0,0.02) !important;
}
.iti__flag-container {
  border-radius: 8px 0 0 8px;
}
.iti__selected-dial-code {
  font-size: 14px !important;
  color: var(--tpmr-black);
}


/* Booking Review Step 4 Redesign */
.tpmr-step-4-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .tpmr-step-4-wrapper {
    flex-direction: column;
  }
  .tpmr-summary-card {
    width: 100% !important;
  }
}

.tpmr-main-review {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tpmr-review-section-card {
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  border-radius: var(--tpmr-radius-card);
  overflow: hidden;
}

.tpmr-review-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--tpmr-gray-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fcfcfc;
}

.tpmr-review-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}

.tpmr-edit-link {
  background: none;
  border: none;
  color: var(--tpmr-gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.tpmr-edit-link:hover {
  color: var(--tpmr-gold-dark);
}

.tpmr-review-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpmr-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.tpmr-review-label {
  color: var(--tpmr-gray-text);
}

.tpmr-review-val {
  font-weight: 500;
  color: var(--tpmr-gray-dark);
  text-align: right;
  max-width: 60%;
  word-wrap: break-word;
}

.tpmr-payment-method-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--tpmr-gray-border);
  border-radius: 8px;
  background-color: var(--tpmr-light-bg);
}

.tpmr-payment-radio {
  accent-color: var(--tpmr-gold);
  width: 18px;
  height: 18px;
}

.tpmr-payment-text {
  display: flex;
  flex-direction: column;
}

.tpmr-payment-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--tpmr-gray-dark);
}

.tpmr-payment-subtitle {
  font-size: 12px;
  color: var(--tpmr-gray-text);
}

.tpmr-sidebar-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}

.tpmr-mt-24 {
  margin-top: 24px;
}
/* Redesigned Step 4 CSS */
.tpmr-review-card-modern {
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex;
  padding: 24px;
}
.tpmr-review-icon-col {
  width: 48px;
  flex-shrink: 0;
}
.tpmr-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fcf4e3;
  color: var(--tpmr-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpmr-review-content-col {
  flex: 1;
}
.tpmr-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border: none;
  background: transparent;
  padding: 0;
}
.tpmr-review-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}
.tpmr-edit-link {
  background: transparent;
  border: 1px solid var(--tpmr-gold);
  border-radius: 16px;
  color: var(--tpmr-gold);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.tpmr-edit-link:hover {
  background: var(--tpmr-gold);
  color: var(--tpmr-white);
}
.tpmr-review-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tpmr-review-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tpmr-grid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tpmr-grid-label {
  font-size: 12px;
  color: var(--tpmr-gray-text);
}
.tpmr-grid-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--tpmr-gray-dark);
}

.tpmr-payment-card {
  padding: 16px 24px;
}
.tpmr-payment-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.tpmr-payment-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}
.tpmr-secure-note {
  font-size: 12px;
  color: var(--tpmr-gray-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tpmr-payment-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--tpmr-gray-border);
  border-radius: 8px;
  background-color: var(--tpmr-white);
}
.tpmr-pay-left {
  display: flex;
  align-items: center;
}
.tpmr-payment-radio {
  accent-color: var(--tpmr-gold);
  width: 18px;
  height: 18px;
}
.tpmr-pay-text {
  display: flex;
  flex-direction: column;
}
.tpmr-pay-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--tpmr-gray-dark);
}
.tpmr-pay-subtitle {
  font-size: 12px;
  color: var(--tpmr-gray-text);
}
.tpmr-pay-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tpmr-gray-text);
}

.tpmr-step-4-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.tpmr-btn-prev-4 {
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  color: var(--tpmr-gray-dark);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.tpmr-btn-confirm-pay {
  background: var(--tpmr-gold);
  color: var(--tpmr-white);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.tpmr-terms-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--tpmr-gray-text);
}
.tpmr-terms-footer a {
  color: var(--tpmr-gold);
  text-decoration: none;
}

/* Sidebar */
.tpmr-summary-sidebar {
  background: var(--tpmr-white);
  border: 1px solid var(--tpmr-gray-border);
  border-radius: 12px;
  padding: 24px;
  width: 340px;
  flex-shrink: 0;
}
.tpmr-summary-sidebar h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}
.tpmr-sidebar-subtitle {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--tpmr-gray-text);
}
.tpmr-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tpmr-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--tpmr-light-bg);
}
.tpmr-sum-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--tpmr-gray-dark);
  font-weight: 500;
}
.tpmr-sum-item-left svg {
  color: var(--tpmr-gray-text);
}
.tpmr-sum-item-right {
  font-size: 13px;
  color: var(--tpmr-gray-text);
  max-width: 50%;
  text-align: right;
  word-wrap: break-word;
}
.tpmr-sidebar-divider {
  border: none;
  border-top: 1px dashed var(--tpmr-gray-border);
  margin: 24px 0;
}
.tpmr-sidebar-total-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}
.tpmr-waiting-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--tpmr-gold);
  line-height: 1.3;
}
.tpmr-secure-box {
  background: #fcf4e3;
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--tpmr-gray-dark);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .tpmr-review-grid-4, .tpmr-review-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .tpmr-review-card-modern {
    flex-direction: column;
  }
  .tpmr-review-icon-col {
    display: none;
  }
  .tpmr-review-grid-4, .tpmr-review-grid-3 {
    grid-template-columns: 1fr;
  }
}
/* Minimalist Flat Review Layout */
.tpmr-review-section-flat {
  margin-bottom: 24px;
}
.tpmr-review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.tpmr-review-section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--tpmr-gray-dark);
}
.tpmr-edit-text-link {
  background: transparent;
  border: none;
  color: var(--tpmr-gold);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.tpmr-edit-text-link:hover {
  color: var(--tpmr-gold-dark);
}
.tpmr-review-flat-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
}
.tpmr-review-flat-grid .tpmr-flat-item {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tpmr-flat-label {
  font-size: 13px;
  color: var(--tpmr-gray-text);
}
.tpmr-flat-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--tpmr-gray-dark);
}
.tpmr-divider {
  border: none;
  border-top: 1px solid var(--tpmr-light-bg);
  margin: 24px 0;
}
.tpmr-payment-flat {
  background: var(--tpmr-white);
}
@media (max-width: 600px) {
  .tpmr-main-review {
    padding-right: 0 !important;
  }
  .tpmr-review-flat-grid .tpmr-flat-item {
    width: 100%;
  }
}
/* 2x2 Review Cards Layout */
.tpmr-review-grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.tpmr-review-card-modern {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.tpmr-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.tpmr-review-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tpmr-review-card-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}
.tpmr-icon-wrap {
  font-size: 16px;
}
.tpmr-review-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.tpmr-card-field {
  display: flex;
  flex-direction: column;
}
.tpmr-card-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}
.tpmr-card-value {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  word-break: break-word;
}
.tpmr-edit-link {
  font-size: 13px !important;
  color: var(--tpmr-gold) !important;
  text-decoration: underline;
}
.tpmr-payment-hero {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.tpmr-payment-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tpmr-payment-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tpmr-payment-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.tpmr-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}
@media (max-width: 768px) {
  .tpmr-review-grid-cards {
    grid-template-columns: 1fr;
  }
}
/* Visual Polish Updates */
.tpmr-review-card-modern {
  padding: 16px 20px;
}
.tpmr-review-card-header {
  border-bottom: 1px solid #f4f6f8;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.tpmr-review-card-title h3 {
  font-size: 18px;
}
.tpmr-review-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tpmr-card-field {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #f4f6f8;
  padding-bottom: 6px;
}
.tpmr-card-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tpmr-card-label {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}
.tpmr-card-value {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  text-align: right;
  max-width: 60%;
}
.tpmr-edit-btn-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--tpmr-gold);
  background: rgba(199, 168, 119, 0.1);
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.tpmr-edit-btn-pill:hover {
  background: var(--tpmr-gold);
  color: #fff;
}
.tpmr-payment-hero {
  padding: 32px;
}
.tpmr-payment-features {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 20px;
}
.tpmr-payment-features hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 16px 0;
}
/* Further Visual Polish & Truncation */
.tpmr-review-card-modern {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tpmr-review-card-body {
  flex-grow: 1;
}
.tpmr-card-value {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  max-width: 65%;
  line-height: 1.4;
}
.tpmr-summary-total-val #sum-total {
  font-size: 14px !important;
  color: var(--tpmr-gray-text) !important;
  font-weight: 500;
  text-align: right;
}
.tpmr-sum-item-right {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
/* Premium Detailed Review Blocks */
.tpmr-premium-review-block {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.tpmr-review-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.tpmr-edit-btn-dark {
  color: var(--tpmr-gold) !important;
  background: transparent !important;
  border: 1px solid var(--tpmr-gold) !important;
}
.tpmr-edit-btn-dark:hover {
  background: rgba(199, 168, 119, 0.1) !important;
}
.tpmr-review-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tpmr-review-section-title {
  color: #a0a0a0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.tpmr-section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.tpmr-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tpmr-dark-block .tpmr-review-label {
  color: #a0a0a0;
  font-size: 14px;
}
.tpmr-dark-block .tpmr-review-value {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}
.tpmr-review-divider-dark {
  border: none;
  border-top: 1px solid #333;
  margin: 24px 0;
}
.tpmr-white-review-block {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 32px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.tpmr-val-dark {
  color: #111;
  font-weight: 600;
  font-size: 15px;
}

/* Custom Material Symbol Radio Buttons */
.tpmr-custom-radio input[type="radio"] {
  display: none;
}
.tpmr-custom-radio .tpmr-radio-checked {
  display: none;
  color: var(--tpmr-gold);
}
.tpmr-custom-radio .tpmr-radio-unchecked {
  display: inline-block;
  color: var(--tpmr-gray-text);
}
.tpmr-custom-radio input[type="radio"]:checked ~ .tpmr-radio-unchecked {
  display: none;
}
.tpmr-custom-radio input[type="radio"]:checked ~ .tpmr-radio-checked {
  display: inline-block;
}

/* Step 4 Grid Responsive Layout */
@media (max-width: 768px) {
  .tpmr-step-4-grid {
    grid-template-columns: 1fr !important;
  }
}
/* TPMR Custom Toast Notifications */
.tpmr-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.tpmr-toast {
  background: var(--tpmr-white);
  color: var(--tpmr-black);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  font-family: var(--tpmr-font-body);
  font-size: 15px;
  font-weight: 500;
  border-left: 4px solid var(--tpmr-gold);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: auto;
}
.tpmr-toast.tpmr-toast-show {
  transform: translateX(0);
  opacity: 1;
}
.tpmr-toast-error {
  border-left-color: #ef4444; /* Red border for errors */
}
.tpmr-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tpmr-toast-error .tpmr-toast-icon {
  color: #ef4444;
}
.tpmr-toast-success .tpmr-toast-icon {
  color: var(--tpmr-success);
  border-left-color: var(--tpmr-success);
}
.tpmr-toast-message {
  flex: 1;
  line-height: 1.4;
}
