/* =========================================
   CONSULTATION PAGE — Prayush Technology
   Theme: blue-to-teal gradient, Poppins
   ========================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: #f0f6ff;
}

/* ─── SECTION LAYOUT ─── */
.consultation-section {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ─── LEFT PANEL ─── */
.left-panel {
  width: 38%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #1a4fd6 0%, #0ea5e9 55%, #06c9b8 100%);
  padding: 60px 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background circles for depth */
.left-panel::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -120px;
  right: -100px;
  pointer-events: none;
}

.left-panel::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  bottom: -80px;
  left: -60px;
  pointer-events: none;
}

.left-inner {
  position: relative;
  z-index: 1;
}

/* Brand badge */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}

.brand-badge i {
  color: #fde68a;
  font-size: 11px;
}

/* Main heading */
.heading {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.heading-accent {
  color: #bfefff;
}

.heading-line {
  width: 52px;
  height: 3px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  margin-bottom: 22px;
}

.left-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 300px;
}

/* Perks list */
.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.perks-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.perk-icon {
  color: #bfefff;
  font-size: 15px;
  flex-shrink: 0;
}

/* Trust stats row */
.trust-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}

.trust-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trust-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.trust-label {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  text-align: center;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.25);
}

/* ─── RIGHT PANEL ─── */
.right-panel {
  flex: 1;
  background: #f0f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 44px 48px;
  width: 100%;
  max-width: 720px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.03),
    0 20px 60px rgba(14, 165, 233, 0.08),
    0 0 0 1px rgba(14, 165, 233, 0.08);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.form-header p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

/* ─── FORM LAYOUT ─── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.form-group.full-width {
  margin-bottom: 16px;
}

label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.req {
  color: #ef4444;
}

/* Input wrapper */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 11px 14px 11px 38px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #b0bdc9;
}

.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 3.5px rgba(14, 165, 233, 0.12);
}

/* Input error state */
.input-wrap.has-error input,
.input-wrap.has-error select,
.input-wrap.has-error textarea {
  border-color: #ef4444;
  background: #fff5f5;
}

.input-wrap.has-error input:focus,
.input-wrap.has-error select:focus,
.input-wrap.has-error textarea:focus {
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.12);
}

/* Input success state */
.input-wrap.is-valid input,
.input-wrap.is-valid select,
.input-wrap.is-valid textarea {
  border-color: #10b981;
}

/* Textarea */
.textarea-wrap {
  align-items: flex-start;
}

.textarea-wrap .input-icon {
  top: 13px;
}

.input-wrap textarea {
  resize: vertical;
  min-height: 108px;
  line-height: 1.6;
}

/* Select */
.select-wrap {
  position: relative;
}

.select-wrap select {
  cursor: pointer;
  padding-right: 36px;
}

.select-arrow {
  position: absolute;
  right: 13px;
  color: #94a3b8;
  font-size: 11px;
  pointer-events: none;
}

/* Date input */
input[type="date"] {
  color: #0f172a;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

/* Field error message */
.field-error {
  font-size: 11.5px;
  color: #ef4444;
  font-weight: 500;
  min-height: 16px;
  display: block;
}

/* Char count */
.char-count {
  font-size: 11px;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

.char-count.near-limit {
  color: #f59e0b;
}

.char-count.at-limit {
  color: #ef4444;
}

/* ─── BUDGET PILLS ─── */
.budget-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  cursor: pointer;
}

.pill input[type="radio"] {
  display: none;
}

.pill span {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  transition: all 0.18s ease;
  user-select: none;
  white-space: nowrap;
}

.pill input[type="radio"]:checked + span {
  background: linear-gradient(135deg, #1a4fd6, #0ea5e9);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
}

.pill:hover span {
  border-color: #0ea5e9;
  color: #0ea5e9;
}

/* ─── SUBMIT BUTTON ─── */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  margin-top: 24px;
  background: linear-gradient(135deg, #1a4fd6 0%, #0ea5e9 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1743b8 0%, #0890d0 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:hover {
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.45);
  transform: translateY(-1px);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-label, .btn-arrow {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  font-size: 14px;
  transition: transform 0.22s ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn.loading .btn-label::after {
  content: '...';
}

/* ─── FORM NOTE ─── */
.form-note {
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-note i {
  color: #10b981;
  font-size: 11px;
}

/* ─── SUCCESS MESSAGE ─── */
.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf9);
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 20px;
}

.form-success i {
  font-size: 22px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-success strong {
  display: block;
  font-size: 14px;
  color: #065f46;
  font-weight: 700;
  margin-bottom: 3px;
}

.form-success p {
  font-size: 12.5px;
  color: #047857;
  line-height: 1.5;
}

.form-success.visible {
  display: flex;
  animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .consultation-section {
    flex-direction: column;
  }

  .left-panel {
    width: 100%;
    padding: 48px 32px;
  }

  .trust-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .trust-divider {
    display: none;
  }

  .right-panel {
    padding: 32px 20px;
  }

  .form-card {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .heading {
    font-size: 1.9rem;
  }

  .budget-pills {
    gap: 8px;
  }

  .pill span {
    padding: 7px 13px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}