/*
 * Landing-page package popup (views/aa-front-end/includes/package_booking_modal.php), in the
 * landing pages' style: navy #0c2740 / red #da251d, 14px radius, pill buttons.
 */
.pbm { position: fixed; inset: 0; z-index: 2000; background: rgba(5, 20, 35, .6); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pbm[hidden] { display: none; }
.pbm *, .pbm *:before, .pbm *:after { box-sizing: border-box; }
.pbm-box { width: 920px; max-width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); font-family: inherit; color: #2b3640; }

.pbm-head { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 24px 28px 18px; background: linear-gradient(135deg, #073255, #0a5a94); color: #fff; }
.pbm-course { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.pbm .pbm-title { font-size: 22px !important; font-weight: 800; margin: 4px 0 10px; color: #fff !important; line-height: 1.25; }
.pbm-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pbm-chips li { font-size: 12px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 20px; padding: 3px 11px; }
.pbm-x { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; font-size: 16px; }
.pbm-x:hover { background: rgba(255, 255, 255, .28); }

.pbm-steps { list-style: none; display: flex; gap: 0; margin: 0; padding: 0 28px; border-bottom: 1px solid #e4e9ee; background: #f4f6f9; }
.pbm-steps li { display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 0; margin-right: 18px; font-size: 13px; font-weight: 600; color: #8a959d; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pbm-steps li span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: #e4e9ee; color: #5a6670; }
.pbm-steps li.on { color: #0c2740; border-bottom-color: #da251d; }
.pbm-steps li.on span { background: #da251d; color: #fff; }
.pbm-steps li.done span { background: #1e7e45; color: #fff; }

.pbm-body { flex: 1 1 auto; overflow-y: auto; padding: 24px 28px; min-height: 300px; }   /* steady height between steps */
.pbm-desc { font-size: 15px; line-height: 1.75; color: #4a5560; }
.pbm-desc h1, .pbm-desc h2, .pbm-desc h3, .pbm-desc h4 { font-size: 17px !important; color: #0c2740; font-weight: 700; margin: 16px 0 8px; }
.pbm-desc ul, .pbm-desc ol { padding-left: 22px; margin: 0 0 14px; }
.pbm-desc img { max-width: 100%; height: auto; }
.pbm-desc { overflow-wrap: anywhere; }   /* long links in admin-written descriptions */
.pbm-desc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; line-height: 1.5; }
.pbm-desc th, .pbm-desc td { padding: 8px 10px !important; border: 1px solid #e4e9ee !important; vertical-align: top; text-align: left; overflow-wrap: normal; }
.pbm-desc th { background: #f4f6f9; color: #0c2740; font-weight: 700; }
.pbm-narrow { max-width: 420px; margin: 10px auto; }
.pbm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.pbm-fld { margin-bottom: 14px; }
.pbm-fld label { display: block; font-size: 13px; font-weight: 600; color: #0c2740; margin-bottom: 5px; }
.pbm-req { color: #da251d; }
.pbm-fld input, .pbm-fld select { width: 100%; height: 44px; border: 1px solid #d7dee4; border-radius: 9px; padding: 0 13px; font-size: 14px; color: #0c2740; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.pbm-fld input:focus, .pbm-fld select:focus { border-color: #da251d; box-shadow: 0 0 0 3px rgba(218, 37, 29, .13); }
.pbm-fld input[readonly], .pbm-fld select:disabled { background: #f4f6f9; color: #5a6670; }
.pbm-phone { display: flex; gap: 8px; }
.pbm-phone select { width: 104px; flex: 0 0 104px; padding: 0 8px; }
.pbm-next { text-align: center; font-size: 14px; color: #0c2740; margin-top: 6px; }
.pbm-next .fa { color: #da251d; margin-right: 4px; }
.pbm-note { font-size: 13px; color: #1e7e45; background: #e7f6ec; border-radius: 8px; padding: 9px 12px; margin: 0 0 16px; }
.pbm-msg { display: none; margin-top: 6px; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }
.pbm-msg.show { display: block; }
.pbm-msg .alert { margin: 0; padding: 0; background: none; border: 0; color: inherit; }
.pbm-msg .close { display: none; }

.pbm-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; border-top: 1px solid #e4e9ee; background: #fff; }
.pbm-price s { display: block; font-size: 13px; color: #8a959d; }
.pbm-price strong { font-size: 24px; font-weight: 800; color: #0c2740; line-height: 1.1; }
.pbm-actions { display: flex; gap: 10px; }
.pbm-btn { border: 0; border-radius: 30px; padding: 12px 28px; font-size: 15px; font-weight: 800; background: #da251d; color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.pbm-btn:hover { background: #b3170f; transform: translateY(-1px); }
.pbm-btn:disabled { opacity: .6; cursor: default; transform: none; }
.pbm-btn-ghost { background: #fff; color: #0c2740; border: 1px solid #d7dee4; }
.pbm-btn-ghost:hover { background: #f4f6f9; }

@media (max-width: 640px) {
  .pbm { padding: 0; align-items: stretch; }
  .pbm-box { max-height: 100vh; height: 100%; border-radius: 0; }
  .pbm-head, .pbm-body, .pbm-foot { padding-left: 16px; padding-right: 16px; }
  .pbm-steps { padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  .pbm-steps::-webkit-scrollbar { display: none; }
  .pbm-steps li { white-space: nowrap; }
  .pbm-grid { grid-template-columns: minmax(0, 1fr); }
  .pbm-price strong { font-size: 20px; }
  .pbm-btn { padding: 11px 20px; }
}
