:root {
  --q-blue: #002556;
  --q-blue-deep: #001936;
  --q-blue-soft: #f1f5fb;
  --q-soft: #f6f8fb;
  --q-line: #dfe7f0;
  --q-text: #253143;
  --q-muted: #657386;
  --q-accent: #0b3f78;
  --q-accent-hover: #002556;
}

.qurbani-theme {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--q-text);
  background: #ffffff;
  overflow-x: hidden;
}

.qurbani-theme .header .top-bar {
  background-color: #ffffff;
}

.qurbani-theme .footer,
.qurbani-theme .footer-bottom,
.qurbani-theme .footer-columns {
  background-color: var(--q-blue) !important;
}

.qurbani-banner {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: url('../assets/qurbani_banner.jpeg') center/cover no-repeat;
  isolation: isolate;
}

.qurbani-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 25, 54, 0.72);
  z-index: -1;
}

.qurbani-title {
  margin: 0;
  color: #ffffff;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  text-align: center;
}

.qurbani-page {
  background: #ffffff;
  padding: 80px 20px 110px;
}

.qurbani-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 48px;
  align-items: start;
}

.qurbani-story {
  min-width: 0;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 37, 86, 0.12), rgba(0, 37, 86, 0.04)),
    url('../assets/qurbani_banner.jpeg') center/cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.qurbani-quote,
.info-box {
  margin-top: 24px;
  padding: 28px;
  background: var(--q-blue-soft);
  border-radius: 8px;
}

.qurbani-quote p {
  margin: 0;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.75;
  text-align: center;
  color: var(--q-blue);
}

.info-box p {
  margin: 0 0 18px;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 1rem;
  line-height: 1.9;
  color: #334258;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box h2 {
  margin: 0 0 18px;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 1.35rem;
  color: var(--q-blue);
}

.package-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.package-country {
  padding: 18px;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #ffffff;
}

.package-country h3 {
  margin: 0 0 12px;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  color: var(--q-blue);
  font-size: 1.05rem;
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.info-box li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-weight: 500;
  line-height: 1.6;
}

.info-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--q-accent);
}

.info-box li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.qurbani-donation-panel {
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 37, 86, 0.1);
  overflow: visible;
}

.donation-intro {
  padding: 28px;
  background: var(--q-blue);
  color: #ffffff;
}

.donation-intro h2 {
  margin: 0 0 12px;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 1.45rem;
}

.donation-intro p {
  margin: 0;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  line-height: 1.75;
}

.currency-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 28px;
  padding: 10px 16px;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: var(--q-soft);
}

.currency-label {
  color: var(--q-muted);
  font-weight: 700;
}

.currency-label.active {
  color: var(--q-blue);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e8eef7;
  border: 1px solid var(--q-line);
  transition: 0.25s;
  border-radius: 34px;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--q-accent);
  transition: 0.25s;
  border-radius: 50%;
}

input:checked + .slider::before {
  transform: translateX(22px);
}

.country-cards {
  display: flex;
  flex-direction: column;
}

.custom-qurbani-card {
  margin: 0 28px 24px;
  padding: 22px;
  border: 1px solid rgba(197, 160, 89, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 37, 86, 0.95), rgba(11, 63, 120, 0.9)),
    var(--q-blue);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 37, 86, 0.14);
}

.custom-qurbani-copy {
  display: grid;
  gap: 8px;
}

.custom-qurbani-kicker {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(197, 160, 89, 0.6);
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.14);
  color: #f6d98d;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.custom-qurbani-card h2 {
  margin: 0;
  color: #ffffff;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.custom-qurbani-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  line-height: 1.6;
}

.custom-qurbani-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.custom-qurbani-form label {
  color: #f6d98d;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.custom-amount-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.custom-currency-prefix {
  padding: 0 0 0 16px;
  color: var(--q-blue);
  font-size: 1.2rem;
  font-weight: 800;
}

#custom-qurbani-amount {
  width: 100%;
  min-height: 48px;
  border: 0;
  padding: 0 16px 0 10px;
  color: var(--q-text);
  font: inherit;
  font-weight: 700;
}

#custom-qurbani-amount:focus {
  outline: none;
}

#custom-qurbani-amount::placeholder {
  color: #8b98a8;
}

#custom-qurbani-amount[type=number] {
  -moz-appearance: textfield;
}

#custom-qurbani-amount::-webkit-outer-spin-button,
#custom-qurbani-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.country-card {
  padding: 22px 28px;
  border-top: 1px solid var(--q-line);
}

.country-card:first-child {
  border-top: 0;
}

.country-card h2 {
  margin: 0 0 12px;
  color: var(--q-blue);
  font-size: 1.15rem;
  font-weight: 800;
}

.selection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #edf2f7;
}

.selection-row:first-of-type {
  border-top: 0;
}

.selection-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.selection-title {
  font-weight: 700;
  color: var(--q-text);
}

.selection-price {
  color: var(--q-blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.integer-counter {
  display: grid;
  grid-template-columns: 38px 40px 38px;
  align-items: center;
  border: 1px solid var(--q-line);
  border-radius: 8px;
  background: var(--q-soft);
  overflow: hidden;
}

.btn-minus,
.btn-plus {
  width: 38px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--q-blue);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.btn-minus:hover,
.btn-plus:hover {
  background: var(--q-blue);
  color: #ffffff;
}

.qty-input {
  width: 40px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--q-line);
  border-right: 1px solid var(--q-line);
  background: #ffffff;
  color: var(--q-text);
  text-align: center;
  font-weight: 800;
}

.qty-input:focus {
  outline: none;
}

.qty-input[type=number] {
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.floating-summary-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 24px 28px;
  border-top: 1px solid var(--q-line);
  background: #ffffff;
  box-shadow: 0 -16px 34px rgba(0, 37, 86, 0.12);
}

.summary-left,
.summary-right {
  display: flex;
  align-items: center;
}

.summary-left {
  gap: 12px;
  margin-bottom: 18px;
}

.impact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--q-accent);
  position: relative;
  flex: 0 0 auto;
}

.impact-icon::before,
.impact-icon::after {
  content: "";
  position: absolute;
  background: var(--q-accent);
  border-radius: 999px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.impact-icon::before {
  width: 18px;
  height: 3px;
}

.impact-icon::after {
  width: 3px;
  height: 18px;
}

.impact-text {
  display: grid;
  gap: 2px;
}

#families-fed,
.total-amount {
  color: var(--q-blue);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.impact-label,
.total-label {
  color: var(--q-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.summary-right {
  justify-content: space-between;
  gap: 16px;
}

.total-text {
  display: grid;
  gap: 6px;
}

.btn-confirm {
  min-width: 150px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--q-accent);
  color: #ffffff;
  font-family: 'Nirmala UI', 'SolaimanLipi', 'Pridi', 'Outfit', serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-confirm:hover {
  background: var(--q-accent-hover);
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .qurbani-container {
    grid-template-columns: 1fr;
  }

  .qurbani-donation-panel {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .qurbani-banner {
    min-height: 230px;
    padding: 60px 16px;
  }

  .qurbani-page {
    padding: 48px 16px 80px;
  }

  .qurbani-container {
    gap: 32px;
  }

  .qurbani-story {
    order: 2;
  }

  .qurbani-donation-panel {
    order: 1;
  }

  .qurbani-quote,
  .info-box,
  .donation-intro,
  .country-card,
  .floating-summary-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 520px) {
  .package-list {
    grid-template-columns: 1fr;
  }

  .selection-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .integer-counter {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }

  .btn-minus,
  .btn-plus {
    width: 44px;
  }

  .qty-input {
    width: 100%;
  }

  .summary-right {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-confirm {
    width: 100%;
  }
}
