/* ==========================================================================
   QUARTZ - PLAN SPECIFICATIONS MODAL (INSPIRADO NO DESIGN DE REFERÊNCIA)
   ========================================================================== */

/* Overlay Background */
.plan-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.plan-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog Card */
.plan-modal-card {
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #1d1d1f;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

.plan-modal-overlay.is-open .plan-modal-card {
  transform: scale(1) translateY(0);
}

/* Scrollable Container inside Card */
.plan-modal-scroll {
  overflow-y: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Modal */
.plan-modal-scroll::-webkit-scrollbar {
  width: 8px;
}
.plan-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.plan-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.plan-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   HEADER BANNER (BLACK + PETROLEUM BLUE GRADIENT)
   -------------------------------------------------------------------------- */
.plan-modal-banner {
  position: relative;
  min-height: 220px;
  padding: 40px 48px;
  background: linear-gradient(135deg, #04090e 0%, #0a1c28 40%, #13394e 75%, #1b536e 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
}

/* Decorative Petroleum Glow Ribbons */
.plan-modal-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 65% 40%, rgba(30, 120, 150, 0.5) 0%, rgba(12, 60, 80, 0.3) 45%, transparent 75%);
  pointer-events: none;
  filter: blur(25px);
}

.plan-modal-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.plan-modal-banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.plan-modal-title {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 6px 0;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.plan-modal-subtitle {
  font-size: 17px;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.plan-modal-tagline {
  position: relative;
  z-index: 2;
  max-width: 260px;
  text-align: right;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* Close Button (Circle X) */
.plan-modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

.plan-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.08);
}

.plan-modal-close-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* --------------------------------------------------------------------------
   BODY CONTENT (LIGHT CLEAN MODERN AREA)
   -------------------------------------------------------------------------- */
.plan-modal-body {
  padding: 44px 48px 48px 48px;
  background: #ffffff;
}

.plan-modal-description {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 500;
  line-height: 1.38;
  color: #111111;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
}

.plan-modal-category-tags {
  font-size: 15px;
  font-weight: 450;
  color: #86868b;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Section Header (INCLUI / ASSUNTOS ABORDADOS) */
.plan-modal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.plan-modal-section-label {
  font-family: "Space Grotesk", sans-serif !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
}

.plan-modal-section-count {
  font-size: 13px;
  font-weight: 500;
  color: #86868b;
}

/* Pill Grid */
.plan-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-bottom: 40px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 450;
  color: #1d1d1f;
  transition: all 0.2s ease;
  user-select: none;
}

.plan-pill:hover {
  background: #ebebeb;
  border-color: #d1d1d6;
  transform: translateY(-1px);
}

/* Featured Green Accent Pill ("e muito mais") */
.plan-pill.pill-accent {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
  font-weight: 600;
}

.plan-pill.pill-accent:hover {
  background: #bbf7d0;
  color: #166534;
}

/* --------------------------------------------------------------------------
   FOOTER ACTIONS
   -------------------------------------------------------------------------- */
.plan-modal-footer {
  display: flex;
  align-items: center;
  gap: 20px;
}

.plan-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  background: #000000;
  color: #ffffff;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
}

.plan-modal-cta:hover {
  background: #2c2c2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.plan-modal-back {
  font-size: 15px;
  font-weight: 450;
  color: #86868b;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 8px 12px;
}

.plan-modal-back:hover {
  color: #1d1d1f;
}

/* --------------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
  .plan-modal-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    min-height: auto;
  }
  
  .plan-modal-tagline {
    text-align: left;
    max-width: 100%;
    margin-top: 12px;
  }

  .plan-modal-body {
    padding: 28px 24px 32px 24px;
  }

  .plan-modal-description {
    font-size: 19px;
  }

  .plan-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .plan-modal-cta {
    width: 100%;
  }

  .plan-modal-back {
    text-align: center;
    width: 100%;
  }
}
