/* ============================================================
   PPT Adventure — Payment Page Components Styles
   ============================================================ */

/* ── 1. Hero Section & Breadcrumbs ───────────────────────── */
.heroSection {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.breadcrumbNav {
  margin-bottom: var(--space-6);
}

.breadcrumbList {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--text-sm);
}

.breadcrumbItem {
  display: inline-flex;
  align-items: center;
}

.breadcrumbLink {
  color: var(--ppt-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbLink:hover {
  color: #269436;
}

.breadcrumbSeparator {
  color: var(--ppt-text-subtle);
  font-size: var(--text-sm);
  user-select: none;
}

.breadcrumbItemActive {
  color: #17232F;
  font-weight: var(--fw-semibold);
}

.heroLayout {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
}

.heroContentLeft {
  max-width: 680px;
}

.heroEyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  color: #269436;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.eyebrowLine {
  display: inline-block;
  width: 32px;
  height: 2.5px;
  background-color: #269436;
  border-radius: 2px;
}

.heroTitle {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #17232F;
  margin-bottom: var(--space-4);
}

.heroTitleHighlight {
  color: #269436;
}

.heroDescription {
  font-size: var(--text-base);
  line-height: 1.65;
  color: #556960;
  max-width: 620px;
}

/* ── Hero Illustration (Right) ───────────────────────────── */
.heroContentRight {
  flex-shrink: 0;
}

.heroIllustrationWrap {
  position: relative;
  width: 360px;
  height: 155px;
  display: flex;
  align-items: flex-end;
}

.heroHandwrittenText {
  position: absolute;
  top: -8px;
  left: 20px;
  transform: rotate(-7deg);
  font-family: var(--font-family-handwritten, 'Caveat', cursive);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  color: #1E5C2A;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.heroIllustrationSvg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── 2. Main Payment Form Card ───────────────────────────── */
.mainPaymentCard {
  background: #FFFFFF;
  border: 1px solid #E5E9E6;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(20, 40, 30, 0.04);
}

.cardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid #F0F4F1;
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.headerIconCircle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #EEF8EF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #269436;
  flex-shrink: 0;
}

.headerIcon {
  stroke-width: 2.2px;
}

.headerMeta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.headerTitle {
  font-size: 19px;
  font-weight: 700;
  color: #17232F;
  margin: 0;
}

.headerBookingCode {
  font-size: var(--text-sm);
  color: #667085;
  margin: 0;
}

.headerBookingCode strong {
  color: #17232F;
  font-weight: var(--fw-semibold);
}

/* Status Badges */
.statusBadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.badgePending {
  background: #FFF5DD;
  color: #B96A00;
  border: 1px solid #FFE6AA;
}

.badgeSuccess {
  background: #EEF8EF;
  color: #269436;
  border: 1px solid #C4E8C3;
}

.badgeDanger {
  background: #FEE9E9;
  color: #DC2626;
  border: 1px solid #FCA5A5;
}

.badgeInfo {
  background: #EBF5FD;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

/* ── 3. Payment Amount Highlight Block ───────────────────── */
.amountHighlightBlock {
  background: #EEF8EF;
  border: 1px solid #D8EDDA;
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: var(--space-6);
  margin-bottom: var(--space-7);
}

.amountTypeLabel {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: #385043;
  margin-bottom: 6px;
}

.amountFocalPrice {
  font-size: 38px;
  font-weight: 800;
  color: #269436;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.amountHelperRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4B6356;
}

.amountHelperIcon {
  color: #269436;
  flex-shrink: 0;
}

.amountHelperText {
  line-height: 1.4;
}

/* ── 4. Form Fields & Controls ───────────────────────────── */
.paymentForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.formLabel {
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  color: #17232F;
}

.requiredMark {
  color: #DC2626;
}

.selectWrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.selectInput {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: #17232F;
  background-color: #FFFFFF;
  border: 1px solid #DDE4DF;
  border-radius: 10px;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.selectInput:focus {
  outline: none;
  border-color: #269436;
  box-shadow: 0 0 0 3px rgba(38, 148, 54, 0.1);
}

.selectChevron {
  position: absolute;
  right: 14px;
  color: #667085;
  pointer-events: none;
}

.noBankNotice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #FFF5DD;
  color: #B96A00;
  border-radius: 10px;
  font-size: 13px;
}

.formGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.textInput {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: #17232F;
  background-color: #FFFFFF;
  border: 1px solid #DDE4DF;
  border-radius: 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textInput:focus {
  outline: none;
  border-color: #269436;
  box-shadow: 0 0 0 3px rgba(38, 148, 54, 0.1);
}

.inputError {
  border-color: #DC2626 !important;
}

.fieldHint {
  font-size: 12.5px;
  color: #667085;
  margin-top: 3px;
  margin-bottom: 0;
}

.fieldHint strong {
  color: #17232F;
}

.fieldError {
  font-size: 12.5px;
  color: #DC2626;
  margin-top: 3px;
  margin-bottom: 0;
}

/* ── 5. Dropzone Upload Bukti Bayar ──────────────────────── */
.dropZone {
  border: 2px dashed #C8D6CB;
  border-radius: 14px;
  background: #FAFCFA;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  padding: 20px;
  outline: none;
}

.dropZone:hover,
.dropZone:focus-visible {
  border-color: #269436;
  background: #F2F8F3;
}

.dropZoneHasFile {
  border-style: solid;
  border-color: #269436;
  background: #FFFFFF;
}

.dropZoneError {
  border-color: #DC2626;
  background: #FFF5F5;
}

.hiddenFileInput {
  display: none;
}

.dropPrompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.dropIconWrap {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #EEF8EF;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.dropIcon {
  stroke-width: 2.2px;
}

.dropText {
  font-size: 14px;
  color: #17232F;
  margin: 0;
}

.dropText strong {
  color: #269436;
  font-weight: var(--fw-semibold);
}

.dropSubtext {
  font-size: 12.5px;
  color: #667085;
  margin: 0;
}

/* Selected File Preview */
.fileSelectedContainer {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.previewImageWrap {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #E5E9E6;
  flex-shrink: 0;
}

.previewImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.previewPdfWrap {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #FEE9E9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #DC2626;
  flex-shrink: 0;
}

.fileMeta {
  flex: 1;
  min-width: 0;
}

.fileName {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: #17232F;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px 0;
}

.fileSize {
  font-size: 12px;
  color: #667085;
  margin: 0;
}

.fileActions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.fileChangeBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: #269436;
  background: #EEF8EF;
  border: 1px solid #C4E8C3;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fileChangeBtn:hover {
  background: #DDF0DE;
}

.fileRemoveBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: #DC2626;
  background: #FEE9E9;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fileRemoveBtn:hover {
  background: #FDD8D8;
}

/* ── 6. Form Alerts & Submit Button ──────────────────────── */
.errorAlert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #FEE9E9;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  border-radius: 10px;
  font-size: 13.5px;
}

.submitBtn {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #269436;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: var(--fw-bold);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 14px rgba(38, 148, 54, 0.25);
}

.submitBtn:hover:not(:disabled) {
  background: #1F7F2E;
  transform: translateY(-1px);
}

.submitBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ── 7. Rejection & Verification Notice Banners ─────────── */
.rejectedBanner {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #FEE9E9;
  border: 1px solid #FCA5A5;
  border-radius: 12px;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.rejectedIcon {
  color: #DC2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.rejectedContent {
  font-size: 13.5px;
}

.rejectedTitle {
  font-weight: var(--fw-bold);
  color: #991B1B;
  margin: 0 0 4px 0;
}

.rejectedReason {
  color: #B91C1C;
  margin: 0 0 6px 0;
}

.rejectedHelp {
  color: #7F1D1D;
  margin: 0;
  font-size: 12.5px;
}

.verificationBanner {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #EBF5FD;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  margin-top: var(--space-5);
}

.verificationIcon {
  color: #2563EB;
  flex-shrink: 0;
  margin-top: 2px;
}

.verificationContent {
  font-size: 13.5px;
}

.verificationTitle {
  font-weight: var(--fw-bold);
  color: #1E40AF;
  margin: 0 0 4px 0;
}

.verificationDesc {
  color: #1E3A8A;
  margin: 0;
}

/* ── 8. Success State Box ────────────────────────────────── */
.successStateBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-10) var(--space-6);
}

.successIconCircle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #EEF8EF;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.successTitle {
  font-size: 22px;
  font-weight: 700;
  color: #17232F;
  margin: 0 0 8px 0;
}

.successDesc {
  font-size: 14.5px;
  color: #556960;
  max-width: 440px;
  line-height: 1.55;
  margin: 0 0 var(--space-6) 0;
}

.successActions {
  display: flex;
  gap: var(--space-3);
}

/* ── 9. Cannot Submit Fallback Box ───────────────────────── */
.cannotSubmitBox {
  padding: var(--space-6) 0;
  text-align: center;
}

.cannotSubmitText {
  font-size: 14.5px;
  color: #556960;
  margin-bottom: var(--space-4);
}

.cannotSubmitActions {
  display: flex;
  justify-content: center;
}

/* ============================================================
   SIDEBAR COMPONENTS (Ringkasan Trip, Trust, Support, Eco)
   ============================================================ */
.sidebarWrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--navbar-height, 70px) + 24px);
}

/* Card 1: Ringkasan Trip */
.summaryCard {
  background: #FFFFFF;
  border: 1px solid #E5E9E6;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(20, 40, 30, 0.04);
}

.summaryCardHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.summaryIcon {
  color: #269436;
}

.summaryCardTitle {
  font-size: 16px;
  font-weight: 700;
  color: #17232F;
  margin: 0;
}

.thumbnailContainer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #E8F0EA;
  margin-bottom: 14px;
}

.thumbnailImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tripMetaGroup {
  margin-bottom: 12px;
}

.tripMountainName {
  font-size: 17px;
  font-weight: 700;
  color: #17232F;
  margin: 0 0 2px 0;
}

.tripRouteName {
  font-size: 13px;
  color: #667085;
  margin: 0;
}

.tripDetailsList {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.tripDetailItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #485A51;
}

.detailIcon {
  color: #269436;
  flex-shrink: 0;
}

.detailText {
  line-height: 1.4;
}

.summaryDivider {
  height: 1px;
  background: #F0F4F1;
  margin: 14px 0;
}

/* Price Breakdown */
.priceBreakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.totalRow {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.totalLabel {
  font-size: 12.5px;
  font-weight: var(--fw-medium);
  color: #667085;
}

.totalAmount {
  font-size: 22px;
  font-weight: 800;
  color: #269436;
  letter-spacing: -0.01em;
}

.dueRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #17232F;
  margin-top: 2px;
}

.dueLabel {
  font-weight: var(--fw-medium);
  color: #556960;
}

.dueAmount {
  font-weight: 700;
  color: #17232F;
}

.deadlineNotice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FFF5DD;
  border-radius: 8px;
  padding: 9px 12px;
  margin-top: 14px;
  font-size: 12px;
  color: #945200;
  line-height: 1.4;
}

.deadlineIcon {
  color: #B96A00;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card 2: Pembayaran Aman */
.trustCard {
  background: #FFFFFF;
  border: 1px solid #E5E9E6;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(20, 40, 30, 0.03);
}

.trustIconWrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EEF8EF;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trustIcon {
  stroke-width: 2.2px;
}

.trustContent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trustTitle {
  font-size: 14px;
  font-weight: 700;
  color: #17232F;
  margin: 0;
}

.trustDesc {
  font-size: 12px;
  color: #667085;
  margin: 0;
  line-height: 1.4;
}

/* Card 3: Butuh Bantuan? */
.supportCard {
  background: #FFFFFF;
  border: 1px solid #E5E9E6;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(20, 40, 30, 0.03);
}

.supportHeader {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.supportIconWrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #EEF8EF;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supportIcon {
  stroke-width: 2.2px;
}

.supportTitle {
  font-size: 14px;
  font-weight: 700;
  color: #17232F;
  margin: 0 0 2px 0;
}

.supportDesc {
  font-size: 12px;
  color: #667085;
  margin: 0;
  line-height: 1.4;
}

.supportWaBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: #FFFFFF;
  color: #269436;
  border: 1.5px solid #269436;
  border-radius: 10px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.supportWaBtn:hover {
  background: #EEF8EF;
  border-color: #1F7F2E;
  color: #1F7F2E;
}

.waBtnIcon {
  flex-shrink: 0;
}

.waArrow {
  transition: transform var(--transition-fast);
}

.supportWaBtn:hover .waArrow {
  transform: translateX(3px);
}

/* Card 4: Bersama untuk Alam */
.ecoCard {
  background: #EEF8EF;
  border: 1px solid #D8EDDA;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ecoIconWrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #269436;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(38, 148, 54, 0.08);
}

.ecoIcon {
  stroke-width: 2.2px;
}

.ecoContent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ecoTitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #17232F;
  margin: 0;
}

.ecoDesc {
  font-size: 12px;
  color: #4A6355;
  margin: 0;
  line-height: 1.4;
}

/* Responsive display helper */
.mobileOnly {
  display: none;
}

.desktopOnly {
  display: block;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (768px – 1199px) */
@media (max-width: 1199px) {
  .heroTitle {
    font-size: 42px;
  }

  .heroIllustrationWrap {
    width: 280px;
    height: 130px;
  }

  .heroHandwrittenText {
    font-size: 22px;
    top: -12px;
    left: 10px;
  }
}

/* Mobile & Small Tablet (< 900px) */
@media (max-width: 899px) {
  .heroLayout {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .heroContentRight {
    display: none; /* Hide illustration & handwriting on mobile per spec */
  }

  .heroTitle {
    font-size: 34px;
    line-height: 1.18;
  }

  .mainPaymentCard {
    padding: 20px;
    border-radius: 16px;
  }

  .cardHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .amountHighlightBlock {
    padding: 18px 20px;
  }

  .amountFocalPrice {
    font-size: 30px;
  }

  .formGrid2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sidebarWrapper {
    position: static;
    margin-top: var(--space-6);
  }

  .mobileOnly {
    display: block;
  }

  .desktopOnly {
    display: none;
  }

  .fileSelectedContainer {
    flex-direction: column;
    align-items: flex-start;
  }

  .fileActions {
    width: 100%;
    justify-content: flex-end;
  }
}
