/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION 9: PREMIUM DYNAMIC ESTIMATOR FORM — Shree Studio
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.packages-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 120px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.packages-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(229, 9, 20, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(229, 9, 20, 0.04) 0%,
      transparent 50%
    );
  z-index: 1;
  pointer-events: none;
}

.packages-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.packages-header {
  text-align: center;
}


.packages-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.packages-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  margin-top: 6px;
}

.packages-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  max-width: 520px;
  line-height: 1.5;
}

/* Form Container Styling */
.quotation-form-wrap {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 45px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.quotation-form-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.form-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.step-num {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: #e50914;
  font-style: italic;
  font-weight: 700;
  border-bottom: 1.5px solid rgba(229, 9, 20, 0.4);
  padding-bottom: 2px;
}

/* ─── Custom Themed Dropdown ─── */
.select-wrapper {
  position: relative;
  width: 100%;
}

/* Hide native select — value still bound for JS */
.select-wrapper select {
  display: none;
}

.custom-select {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select-trigger.has-value {
  color: #fff;
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.1);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-icon {
  color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  flex-shrink: 0;
}

.custom-select.open .custom-select-icon {
  transform: rotate(180deg);
  color: #e50914;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0d0d0d;
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);

  /* Custom scrollbar — Webkit (Chrome, Edge, Safari) */
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 9, 20, 0.6) rgba(255, 255, 255, 0.04);
}

.custom-select-options::-webkit-scrollbar {
  width: 5px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 12px 0;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.55);
  border-radius: 10px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: #e50914;
}

.custom-select.open .custom-select-options {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.custom-option {
  padding: 14px 20px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding-left 0.2s ease;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background: rgba(229, 9, 20, 0.07);
  color: #fff;
  padding-left: 26px;
}

.custom-option.selected {
  background: rgba(229, 9, 20, 0.12);
  color: #e50914;
  font-weight: 600;
}

/* Checkbox Cards Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.checkbox-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-indicator {
  position: relative;
  height: 20px;
  width: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.checkbox-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.checkbox-card.checked {
  background: rgba(229, 9, 20, 0.04);
  border-color: rgba(229, 9, 20, 0.35);
}

.checkbox-card.checked .checkbox-indicator {
  background: #e50914;
  border-color: #e50914;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}

.checkbox-indicator::after {
  content: "";
  position: absolute;
  display: none;
  left: 6.5px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-card.checked .checkbox-indicator::after {
  display: block;
}

.checkbox-text {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.checkbox-card.checked .checkbox-text {
  color: #fff;
}

.error-text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #e50914;
  display: none;
  margin-top: 4px;
  font-weight: 500;
}

/* Radio Cards (Frequency Options) */
.frequency-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.frequency-card {
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 22px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.frequency-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.frequency-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.frequency-card.active {
  background: rgba(229, 9, 20, 0.05);
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.08);
}

.frequency-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.freq-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.freq-sub {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

.frequency-card.active .freq-sub {
  color: rgba(255, 255, 255, 0.6);
}

/* Primary Form Button */
.form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #e50914, #b8070f);
  border: none;
  border-radius: 50px;
  padding: 16px 38px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.35);
}

.form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(229, 9, 20, 0.5);
}

.form-submit-btn:active {
  transform: translateY(-1px);
}

.form-submit-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover i {
  transform: translateX(5px);
}

/* ─── Cinematic Success Modal Overlay ─── */
.quote-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
}

.quote-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.quote-modal-card {
  background: #0a0a0a;
  border: 1px solid rgba(229, 9, 20, 0.25);
  box-shadow: 0 25px 80px rgba(229, 9, 20, 0.15);
  border-radius: 24px;
  max-width: 550px;
  width: 100%;
  padding: 40px;
  position: relative;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-modal-overlay.active .quote-modal-card {
  transform: scale(1) translateY(0);
}

.quote-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.quote-modal-close:hover {
  color: #fff;
}

.quote-modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e50914;
  font-size: 26px;
  margin-bottom: 24px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
}

.quote-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.quote-modal-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Modal Summary Card Details */
.quote-summary-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

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

.summary-label {
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
}

.requirements-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.summary-list li {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-list li::before {
  content: "✓";
  color: #e50914;
  font-weight: bold;
}

.quote-modal-footer-text {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 28px;
}

.quote-modal-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 14px 28px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quote-modal-btn:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* ─── Scroll Reveal Animation (Central central) ─── */
.packages-section [data-animate] {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.packages-section [data-animate].is-visible {
  opacity: 1;
  transform: none !important;
}

.packages-section [data-animate="fade-up"] {
  transform: translateY(50px);
}

.packages-section [data-delay="200"] {
  transition-delay: 0.2s;
}

/* ─── Contact Form in Modal ─── */
.quote-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.quote-contact-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.quote-contact-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.quote-contact-input:focus {
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.1);
}

/* ─── Responsive Styles ─── */
@media (max-width: 900px) {
  .packages-section {
    padding: 80px 0;
  }

  .packages-container {
    padding: 0 24px;
  }

  .quotation-form-wrap {
    padding: 35px 25px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .frequency-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .custom-select-options {
    max-height: 220px;
  }
}
