/* ==========================================================================
   DEVIFY SOLUTION - GOOGLE ADS PLANNER STYLESHEET
   Blueprint Reference: Dark Futuristic Agency Theme (#050814, #0066ff, #00f0ff)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PLANNER HERO SECTION
   -------------------------------------------------------------------------- */
.planner-hero-section {
  position: relative;
  background-color: #050814;
  background-image: 
    radial-gradient(circle at 75% 20%, rgba(0, 102, 255, 0.35) 0%, rgba(5, 8, 20, 0.95) 60%),
    radial-gradient(circle at 15% 40%, rgba(0, 240, 255, 0.15) 0%, transparent 45%);
  color: #ffffff;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.planner-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.planner-hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00f0ff;
  animation: plannerPulseDot 2s infinite ease-in-out;
}

@keyframes plannerPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.planner-hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

@media (min-width: 768px) {
  .planner-hero-title {
    font-size: 3.25rem;
  }
}

.planner-hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   2. INTERACTIVE PLANNER FORM CONTAINER
   -------------------------------------------------------------------------- */
.planner-form-section {
  background: #040711;
  padding: 3.5rem 0 4.5rem;
}

.planner-card-wrap {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

@media (min-width: 768px) {
  .planner-card-wrap {
    padding: 3rem 2.5rem;
  }
}

.planner-step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066ff, #00d2ff);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planner-step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.planner-step-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* Grid Layout for Form Fields */
.planner-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .planner-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.planner-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.planner-field-group.full-width {
  grid-column: 1 / -1;
}

.planner-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planner-label-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
}

.planner-input, .planner-select {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(8, 14, 29, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}

.planner-input:focus, .planner-select:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.25);
  background: rgba(8, 14, 29, 1);
}

.planner-select option {
  background: #090e1f;
  color: #ffffff;
}

/* Quick Location Chips */
.planner-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.planner-location-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.planner-location-chip:hover {
  background: rgba(0, 102, 255, 0.15);
  color: #ffffff;
  border-color: rgba(0, 102, 255, 0.4);
}

.planner-location-chip.active {
  background: #0066ff;
  color: #ffffff;
  border-color: #0066ff;
}

/* Campaign Goal Cards */
.planner-goals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .planner-goals-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.planner-goal-card {
  position: relative;
  background: rgba(8, 14, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.planner-goal-card:hover {
  border-color: rgba(0, 102, 255, 0.4);
  transform: translateY(-2px);
}

.planner-goal-card.selected {
  border-color: #00f0ff;
  background: rgba(0, 102, 255, 0.15);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.planner-goal-radio {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.planner-goal-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.planner-goal-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.planner-goal-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
}

/* Desired Clicks Presets & Slider */
.planner-clicks-section {
  background: rgba(8, 14, 29, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.25rem;
}

.planner-presets-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .planner-presets-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.planner-preset-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.planner-preset-btn:hover {
  border-color: rgba(0, 102, 255, 0.5);
  background: rgba(0, 102, 255, 0.1);
}

.planner-preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.3) 0%, rgba(0, 210, 255, 0.2) 100%);
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 102, 255, 0.3);
}

.planner-preset-clicks {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.planner-preset-label {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
  text-transform: uppercase;
}

/* Slider Controls */
.planner-slider-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.planner-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.planner-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00f0ff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px #00f0ff;
  cursor: pointer;
}

.planner-clicks-input-box {
  width: 90px;
  padding: 0.5rem 0.65rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

/* Live Preview Snippet */
.planner-live-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #cbd5e1;
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.planner-live-preview-pill strong {
  color: #00f0ff;
}

.preview-divider {
  color: #64748b;
}

/* Submit Button */
.btn-planner-submit {
  width: 100%;
  background: linear-gradient(135deg, #0066ff 0%, #00d2ff 100%);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.1rem 2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn-planner-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 102, 255, 0.6);
}

.btn-planner-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner Icon */
.spinner-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   3. RESULTS DASHBOARD SECTION
   -------------------------------------------------------------------------- */
.planner-results-section {
  display: block;
  background: #060b18;
  padding: 4rem 0 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-results-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.planner-results-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.planner-results-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
}

/* 4 Metric Cards Grid */
.planner-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .planner-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .planner-metrics-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.planner-metric-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.planner-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.45);
}

.planner-metric-card.highlight {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #00f0ff;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.25);
}

.planner-metric-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.planner-metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.planner-metric-card.highlight .planner-metric-value {
  color: #00f0ff;
  font-size: 1.85rem;
}

.spend-period {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
}

.planner-metric-note {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Formula & Disclosure Box */
.planner-formula-box {
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.planner-formula-box strong {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   4. KEYWORD IDEAS & CLUSTERS
   -------------------------------------------------------------------------- */
.planner-keywords-wrap {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.25rem 1.75rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .planner-keywords-wrap {
    padding: 2.5rem 2.25rem;
  }
}

.planner-kw-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .planner-kw-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.planner-match-types {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.planner-match-type-btn {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.planner-match-type-btn:hover {
  background: rgba(0, 102, 255, 0.15);
  color: #ffffff;
}

.planner-match-type-btn.active {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
}

.btn-copy-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-all:hover {
  background: #0066ff;
  border-color: #0066ff;
  color: #ffffff;
}

.btn-copy-all.copied {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

/* 3 Keyword Clusters */
.planner-kw-clusters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 992px) {
  .planner-kw-clusters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.planner-kw-cluster-card {
  background: rgba(8, 14, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.planner-kw-cluster-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.planner-cluster-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.badge-ready { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-compare { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-local { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.planner-cluster-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.planner-cluster-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.planner-kw-pills-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.planner-kw-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.planner-kw-pill:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.4);
}

.planner-kw-pill.copied {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.kw-text {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.kw-copy-icon {
  color: #64748b;
  flex-shrink: 0;
}

.planner-kw-pill:hover .kw-copy-icon {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   5. CONSULTATION & WHATSAPP ACTION CARD
   -------------------------------------------------------------------------- */
.planner-cta-card {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.22) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid #0066ff;
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
  margin-bottom: 3.5rem;
}

.planner-cta-eyebrow {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.planner-cta-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.planner-cta-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.planner-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
}

.planner-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-large:hover {
  background: #1ebd5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.btn-discuss-estimate {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #0066ff;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-discuss-estimate:hover {
  background: #0052cc;
  transform: translateY(-2px);
}

/* Attached Plan Pill for In-Page Form */
.attached-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
