/**
 * PIJET INN - Booking Wizard Styles (Design Reference 02)
 */

:root {
  --pi-green-950: #1F2A22;
  --pi-green-900: #27342A;
  --pi-green-800: #354338;
  --pi-cream-50: #F8F5EC;
  --pi-cream-100: #F1ECE0;
  --pi-beige-200: #E7DECC;
  --pi-gold-500: #B89A5A;
  --pi-orange-500: #C9852B;
  --pi-charcoal-950: #1B1B18;
  --pi-white: #FFFFFF;
  --pi-line: rgba(31, 42, 34, 0.18);
  --pi-overlay: rgba(18, 25, 20, 0.48);
}

.pi-wizard-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--pi-cream-50);
  border: 1px solid var(--pi-line);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(20, 24, 20, 0.06);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pi-wizard-container {
    padding: 24px 16px;
    border-radius: 8px;
    border-left: none;
    border-right: none;
  }
}

/* Progress Bar & Indicators */
.pi-wizard-progress {
  margin-bottom: 32px;
}

.pi-progress-bar {
  height: 3px;
  background: rgba(31, 42, 34, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.pi-progress-fill {
  height: 100%;
  width: 12.5%;
  background: var(--pi-green-950);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pi-step-indicators {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pi-step-dot {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(31, 42, 34, 0.35);
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.pi-step-dot.active {
  color: var(--pi-green-950);
  font-weight: 800;
  border-bottom: 2px solid var(--pi-green-950);
  padding-bottom: 2px;
}

.pi-step-dot.completed {
  color: var(--pi-gold-500);
}

/* Step Header */
.pi-step-header {
  margin-bottom: 28px;
}

.pi-step-tag {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pi-gold-500);
  display: inline-block;
  margin-bottom: 6px;
}

.pi-step-title {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: var(--pi-green-950);
  margin: 0 0 8px 0;
}

.pi-step-desc {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* Step Panes */
.pi-step-pane {
  display: none;
  animation: piFadeIn 0.25s ease-out;
}

.pi-step-pane.active {
  display: block;
}

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

/* Choice Cards Grid */
.pi-choice-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.pi-services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pi-duration-grid,
.pi-gender-grid,
.pi-time-mode-grid,
.pi-payment-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.pi-radio-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pi-choice-card {
  position: relative;
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.pi-choice-card:hover {
  border-color: var(--pi-green-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 42, 34, 0.08);
}

.pi-choice-card.selected {
  border: 2px solid var(--pi-green-950);
  background: #FCFBF8;
}

.pi-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pi-service-icon,
.pi-mode-icon,
.pi-gender-icon,
.pi-pay-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.pi-service-title,
.pi-mode-title,
.pi-gender-title {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pi-green-950);
  margin: 0 0 6px 0;
  letter-spacing: 0.3px;
}

.pi-service-desc,
.pi-mode-desc,
.pi-gender-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.pi-service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(31, 42, 34, 0.08);
  padding-top: 10px;
  margin-top: auto;
}

.pi-service-price {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--pi-green-950);
}

.pi-duration-val {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--pi-green-950);
  line-height: 1;
}

.pi-duration-unit {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 8px;
}

.pi-duration-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--pi-green-950);
  margin-top: 6px;
}

.pi-duration-compare {
  font-size: 13px;
  font-weight: 600;
  color: var(--pi-muted, #94a3b8);
  text-decoration: line-through;
  margin-top: 6px;
}

.pi-duration-promo-tag {
  display: inline-block;
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pi-orange-500);
}

.pi-badge-populer {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--pi-orange-500);
  color: #ffffff;
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.text-center {
  text-align: center;
  align-items: center;
}

/* Form Controls */
.pi-form-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.pi-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .pi-input-row {
    grid-template-columns: 1fr;
  }
}

.pi-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pi-label {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pi-green-950);
}

.pi-req {
  color: #dc2626;
}

.pi-input,
.pi-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 6px;
  padding: 14px 16px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 15px;
  color: var(--pi-charcoal-950);
  transition: border-color 0.2s;
  min-height: 48px;
}

.pi-input:focus,
.pi-textarea:focus {
  outline: none;
  border-color: var(--pi-green-950);
  box-shadow: 0 0 0 2px rgba(31, 42, 34, 0.15);
}

.pi-helper-text {
  font-size: 12px;
  color: #64748b;
}

/* Summary Box */
.pi-summary-box {
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.pi-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(31, 42, 34, 0.1);
  font-size: 14px;
}

.pi-summary-row:last-child {
  border-bottom: none;
}

.pi-summary-label {
  color: #64748b;
  font-weight: 500;
}

.pi-summary-val {
  font-weight: 700;
  color: var(--pi-green-950);
  text-align: right;
}

.pi-summary-total {
  padding-top: 14px;
  margin-top: 4px;
}

.pi-total-highlight {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 22px;
  color: var(--pi-green-950);
}

.pi-payment-selection {
  margin-bottom: 24px;
}

.pi-payment-title {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pi-green-950);
  margin-bottom: 12px;
}

/* Single payment panel (Transfer Bank saja) */
.pi-payment-single {
  background: var(--pi-cream-50, #faf6ef);
  border: 1px solid var(--pi-line);
  border-radius: 10px;
  padding: 18px 20px;
}

.pi-payment-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pi-payment-info-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 10px;
}

.pi-payment-info-text strong {
  display: block;
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--pi-green-950);
  margin-bottom: 4px;
}

.pi-payment-info-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #5b6660;
}

@media (max-width: 520px) {
  .pi-payment-info-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Wizard Buttons */
.pi-wizard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pi-line);
}

.pi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 48px;
  box-sizing: border-box;
}

.pi-btn-primary {
  background: var(--pi-green-950);
  color: #ffffff;
  border: 1px solid var(--pi-green-950);
  margin-left: auto;
}

.pi-btn-primary:hover {
  background: var(--pi-green-900);
  transform: translateY(-1px);
}

.pi-btn-secondary {
  background: transparent;
  color: var(--pi-green-950);
  border: 1px solid var(--pi-line);
}

.pi-btn-secondary:hover {
  background: var(--pi-cream-100);
  color: #1a1a1a !important;
  border-color: var(--pi-line);
}

.pi-btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  border: none;
  font-size: 16px;
  font-weight: 800;
}
.pi-btn-whatsapp:hover {
  background: #1EBE5D;
}

.pi-btn-text {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
}

/* Error Alert */
.pi-error-alert {
  background: #FEE2E2;
  border: 1px solid #F87171;
  color: #991B1B;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Success Modal Backdrop */
.pi-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 25, 20, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
}

.pi-modal-card {
  background: var(--pi-cream-50);
  border: 1px solid var(--pi-line);
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: piModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes piModalPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pi-modal-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.pi-modal-title {
  font-family: "Archivo Narrow", "Arial Narrow", sans-serif;
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--pi-green-950);
  margin-bottom: 10px;
}

.pi-modal-desc {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 24px;
}

.pi-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* INTERACTIVE MAP PICKER (STEP 4) */
.pi-maps-picker-box {
  background: var(--pi-cream-50);
  border: 1.5px solid var(--pi-line);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}

.pi-maps-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.pi-badge-mandatory {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #B45309;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.pi-maps-guide {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 14px 0;
  line-height: 1.45;
}

/* Google Maps Search Bar */
.pi-maps-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.pi-maps-search-box {
  display: flex;
  align-items: center;
  background: var(--pi-white);
  border: 1.5px solid var(--pi-line);
  border-radius: 8px;
  padding: 2px 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pi-maps-search-box:focus-within {
  border-color: var(--pi-gold-500);
  box-shadow: 0 0 0 3px rgba(201, 133, 43, 0.15);
}

.pi-search-icon {
  font-size: 16px;
  margin-right: 8px;
  color: #94a3b8;
  display: flex;
  align-items: center;
}

.pi-maps-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 11px 4px;
  font-size: 14px;
  font-family: inherit;
  color: var(--pi-green-950);
}

.pi-maps-search-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.pi-search-clear-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  padding: 4px 6px;
  transition: color 0.15s;
}

.pi-search-clear-btn:hover {
  color: #ef4444;
}

.pi-search-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--pi-gold-500);
  border-radius: 50%;
  animation: piSpin 0.7s linear infinite;
  margin-left: 6px;
  flex-shrink: 0;
}

@keyframes piSpin {
  to { transform: rotate(360deg); }
}

.pi-maps-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  max-height: 250px;
  overflow-y: auto;
}

.pi-search-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pi-search-item:last-child {
  border-bottom: none;
}

.pi-search-item:hover,
.pi-search-item.is-selected {
  background: var(--pi-cream-100);
}

.pi-search-item-pin {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pi-search-item-text {
  flex: 1;
  min-width: 0;
}

.pi-search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pi-green-950);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pi-search-item-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pi-search-empty {
  padding: 14px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

.pi-maps-toolbar {
  margin-bottom: 12px;
}

.pi-btn-gps {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pi-green-950);
  color: var(--pi-white);
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pi-btn-gps:hover {
  background: var(--pi-green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 42, 34, 0.15);
}

.pi-btn-gps.is-locating {
  opacity: 0.75;
  cursor: wait;
}

.pi-btn-gps.is-success {
  background: #065F46;
}

.pi-gps-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  color: var(--pi-gold-500);
}

.pi-interactive-map-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--pi-line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pi-leaflet-map {
  width: 100%;
  height: 250px;
  background: #e2e8f0;
  z-index: 1;
}

.pi-map-hint {
  background: rgba(18, 25, 20, 0.88);
  color: var(--pi-white);
  font-size: 11px;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Custom Google Maps Marker in Leaflet */
.pi-custom-leaflet-pin {
  background: transparent !important;
  border: none !important;
}

.pi-gmap-pin-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 42px;
}

.pi-gmap-pin-pulse {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  animation: piPulseShadow 1.6s infinite ease-in-out;
}

@keyframes piPulseShadow {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateX(-50%) scale(1.4);
    opacity: 0.15;
  }
}

.pi-gmap-pin-svg {
  position: relative;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
}

/* Field Link Google Maps (Otomatis Tersimpan) */
.pi-maps-link-field-box {
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
}

.pi-maps-link-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--pi-green-950);
  margin-bottom: 6px;
}

.pi-maps-link-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pi-maps-url-input {
  flex: 1;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 9px 12px;
  border-radius: 6px;
}

.pi-btn-gmaps-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a73e8;
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pi-btn-gmaps-preview:hover {
  background: #1557b0;
  transform: translateY(-1px);
}

.pi-maps-saved-notice {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #065F46;
  font-weight: 600;
  margin-top: 8px;
}

.pi-saved-icon {
  font-weight: 800;
  color: #10B981;
}

.pi-maps-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--pi-white);
  border: 1px solid var(--pi-line);
  border-radius: 8px;
  flex-wrap: wrap;
}

.pi-maps-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.pi-maps-status-pill.is-active {
  color: #065F46;
}

.pi-maps-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.pi-maps-status-pill.is-active .pi-maps-status-dot {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

