/* ================================================
   PACKAGE ORDER FORM
   Shared form for all package pages (pf__ prefix)
   ================================================ */

/* ---- section wrapper ---- */
.bp .pf-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(160deg, #0a0a0f 0%, #12111a 30%, #1a1424 60%, #0f0d14 100%);
  scroll-margin-top: 80px;
}

/* animated bg orbs */
.pf-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pf-bg__orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.pf-bg__orb--1 { width: 550px; height: 550px; background: radial-gradient(circle, rgba(128,0,0,.3), transparent 70%); top: -150px; right: -100px; animation: pfOrb1 14s ease-in-out infinite; }
.pf-bg__orb--2 { width: 450px; height: 450px; background: radial-gradient(circle, rgba(180,80,0,.15), transparent 70%); bottom: -120px; left: -80px; animation: pfOrb2 18s ease-in-out infinite; }
.pf-bg__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 50px 50px; }

@keyframes pfOrb1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,35px) scale(1.12); } }
@keyframes pfOrb2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-40px) scale(1.08); } }

/* ---- layout ---- */
.pf-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 30px;
  display: flex; gap: 60px; align-items: flex-start;
}
@media (max-width: 960px) { .pf-wrap { flex-direction: column; gap: 40px; padding: 0 24px; } }

/* ---- left column ---- */
.pf-info { flex: 0 0 380px; }
@media (max-width: 960px) { .pf-info { flex: none; width: 100%; } }

.pf-info__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 100px;
  background: rgba(128,0,0,.2); border: 1px solid rgba(128,0,0,.4);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #e57373; margin-bottom: 20px;
}
.pf-info__badge i { font-size: 11px; }

.pf-info__h2 {
  font-size: 38px; font-weight: 900; line-height: 1.15; color: #fff; margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}
.pf-info__h2 span {
  background: linear-gradient(135deg, #e57373 0%, #ff8a65 50%, #ffb74d 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 768px) { .pf-info__h2 { font-size: 30px; } }

.pf-info__text { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.7; margin: 0 0 32px 0; max-width: 360px; }
.pf-info__text strong { color: rgba(255,255,255,.8); font-weight: 600; }

/* perks list */
.pf-perks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.pf-perk {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .35s ease;
}
.pf-perk:hover { background: rgba(128,0,0,.08); border-color: rgba(128,0,0,.2); transform: translateX(5px); }
.pf-perk__icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(128,0,0,.25), rgba(128,0,0,.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #e57373;
}
.pf-perk div { display: flex; flex-direction: column; gap: 2px; }
.pf-perk strong { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.9); }
.pf-perk span { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500; }

/* highlighted perk — Rabat */
.pf-perk--highlight {
  background: rgba(76,175,80,.08); border: 2px solid rgba(76,175,80,.35);
  padding: 18px 22px; border-radius: 16px;
  box-shadow: 0 0 24px rgba(76,175,80,.15);
}
.pf-perk--highlight:hover { background: rgba(76,175,80,.14); border-color: rgba(76,175,80,.5); transform: translateX(5px); }
.pf-perk--highlight .pf-perk__icon {
  background: linear-gradient(135deg, rgba(76,175,80,.35), rgba(76,175,80,.15));
  color: #81c784;
}
.pf-perk--highlight strong { font-size: 16px; font-weight: 800; color: #a5d6a7; }
.pf-perk--highlight span { font-size: 13.5px; font-weight: 600; color: #81c784; }

/* direct contact */
.pf-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.pf-contact a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.65);
  text-decoration: none; transition: all .3s ease;
}
.pf-contact a i { font-size: 13px; color: #a52a2a; transition: color .3s; }
.pf-contact a:hover { color: #fff; }
.pf-contact a:hover i { color: #e57373; }

.pf-contact__label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  margin: 24px 0 10px 0;
  letter-spacing: 0.3px;
}
.pf-contact--big {
  flex-direction: column;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
}
.pf-contact__link--big {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: rgba(255,255,255,.95) !important;
  gap: 14px !important;
}
.pf-contact__link--big i {
  font-size: 20px !important;
  color: #e57373 !important;
}
.pf-contact__link--big:hover {
  color: #fff !important;
}

/* ---- right column — form card ---- */
.pf-form-col { flex: 1; min-width: 0; }

.pf-form {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 36px 32px 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.pf-form::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #800000, #e57373, #ff8a65, #800000);
  background-size: 200% 100%;
  animation: pfGlow 4s linear infinite;
}
@keyframes pfGlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* form header */
.pf-form__header { text-align: center; margin-bottom: 6px; }
.pf-form__title { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.pf-form__subtitle { font-size: 13px; color: rgba(255,255,255,.4); margin: 0 0 14px; font-weight: 500; }

/* discount badge */
.pf-form__discount {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 8px; margin-bottom: 6px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  font-size: 12px; font-weight: 700; color: #4ade80;
}
.pf-form__discount i { font-size: 11px; }

/* ---- payment toggle ---- */
.pf-pay { display: flex; gap: 10px; }
.pf-pay__option { flex: 1; cursor: pointer; position: relative; }
.pf-pay__option input { position: absolute; opacity: 0; pointer-events: none; }

.pf-pay__card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 16px 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 2px solid rgba(255,255,255,.08);
  transition: all .3s ease; position: relative;
}
.pf-pay__option input:checked ~ .pf-pay__card {
  background: rgba(128,0,0,.18); border-color: rgba(229,115,115,.6);
  box-shadow: 0 0 25px rgba(128,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
}
.pf-pay__option:hover .pf-pay__card { border-color: rgba(255,255,255,.18); }
.pf-pay__option input:checked ~ .pf-pay__card::before {
  content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 10px; right: 12px; font-size: 20px; color: #e57373;
  animation: pfPulse 2s ease-in-out infinite;
}
@keyframes pfPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.15); }
}

.pf-pay__badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 6px;
  background: linear-gradient(135deg, #e57373, #ff8a65); color: #fff;
  font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  white-space: nowrap;
}

.pf-pay__label {
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: rgba(255,255,255,.4); transition: color .3s;
}
.pf-pay__option input:checked ~ .pf-pay__card .pf-pay__label { color: rgba(255,255,255,.7); }

.pf-pay__netto { font-size: 22px; font-weight: 900; color: #e57373; letter-spacing: -0.3px; }
.pf-pay__netto small { font-size: 11px; font-weight: 600; opacity: .55; letter-spacing: 0.3px; }
.pf-pay__brutto { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.45); }

@media (max-width: 400px) {
  .pf-pay { flex-direction: column; gap: 8px; }
  .pf-pay__netto { font-size: 19px; }
}

/* ---- form fields ---- */
.pf-form__row { display: flex; gap: 12px; }
@media (max-width: 550px) { .pf-form__row { flex-direction: column; } }

.pf-form__field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.pf-form__label { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.5); letter-spacing: .5px; text-transform: uppercase; }
.pf-form__label span { text-transform: none; font-weight: 400; color: rgba(255,255,255,.3); }
.pf-form__label .pf-required { color: #e57373; margin-left: 2px; }
.pf-form__hint { font-size: 12px; color: rgba(255,255,255,.35); margin: -4px 0 0; line-height: 1.4; font-style: italic; }
.pf-form__hint strong { color: rgba(255,255,255,.7); font-weight: 700; font-style: normal; }

.pf-form__input {
  width: 100%; padding: 13px 16px;
  font-size: 14px; font-family: "Poppins", sans-serif; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; outline: none; transition: all .3s ease;
  box-sizing: border-box;
}
.pf-form__input::placeholder { color: rgba(255,255,255,.2); }
.pf-form__input:focus { border-color: rgba(128,0,0,.6); background: rgba(255,255,255,.09); box-shadow: 0 0 0 3px rgba(128,0,0,.12); }
textarea.pf-form__input { resize: vertical; min-height: 60px; }

/* checkbox */
.pf-form__checkbox {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.pf-form__checkbox input[type=checkbox] { width: 18px; height: 18px; accent-color: #a52a2a; flex-shrink: 0; }
.pf-form__checkbox span { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.4; }

/* submit button */
.pf-form__submit {
  width: 100%; padding: 16px 28px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 16px; font-weight: 800; font-family: "Poppins", sans-serif; letter-spacing: .3px;
  color: white; background: linear-gradient(135deg, #800000 0%, #a52a2a 50%, #c0392b 100%);
  border: none; border-radius: 14px; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 6px 24px rgba(128,0,0,.35);
  transition: all .4s ease;
}
.pf-form__submit::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .6s ease;
}
.pf-form__submit:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(128,0,0,.5); }
.pf-form__submit:hover::before { left: 100%; }
.pf-form__submit i { transition: transform .3s; }
.pf-form__submit:hover i { transform: translateX(5px); }
.pf-form__submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* error */
.pf-form__error {
  display: none; text-align: center;
  font-size: 13px; color: #ef4444; font-weight: 600;
  padding: 8px; border-radius: 8px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.15);
}
.pf-form__error.is-visible { display: block; }

/* success overlay */
.pf-form__success {
  display: none; position: absolute; inset: 0; z-index: 10;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(10,10,15,.95); backdrop-filter: blur(10px);
  border-radius: 22px;
}
.pf-form__success.is-visible { display: flex; }
.pf-form__success i { font-size: 48px; color: #4ade80; }
.pf-form__success strong { font-size: 20px; color: #fff; font-weight: 800; }
.pf-form__success span { font-size: 14px; color: rgba(255,255,255,.5); text-align: center; max-width: 320px; }

@media (max-width: 960px) {
  .pf-form { padding: 28px 22px 24px; }
}
