/* ============================================
   CONTACT / CTA SECTION (PREMIUM DESIGN OVERHAUL)
   ============================================ */

.cta-section {
  background: radial-gradient(circle at 0% 0%, #08071a 0%, #03020c 100%);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    max-width: 680px;
  }
}

/* ══════════════════════════
   LEFT — Copy / Content Column
   ══════════════════════════ */

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.16);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cta-badge-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}

.cta-gradient {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 460px;
}

.cta-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.cta-perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: #8b5cf6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-perk-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.cta-perks li:hover .cta-perk-icon {
  background: #6366f1;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cta-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 32px 0;
  max-width: 420px;
}

.cta-contact-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.cta-info-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.cta-info-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-email {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-email:hover {
  color: #8b5cf6;
}

.cta-email-caption {
  font-size: 0.8rem;
  color: #94a3b8;
}

.cta-contact-info:hover .cta-info-icon {
  transform: rotate(15deg) scale(1.05);
  background: #6366f1;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* ══════════════════════════
   RIGHT — Form card
   ══════════════════════════ */

.cta-form-wrap {
  position: relative;
}

.cta-form {
  background: rgba(13, 13, 27, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
}

.cta-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 35px 80px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.05);
}

/* ── Row of two fields ── */
.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 580px) {
  .cta-form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Field ── */
.cta-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 2px;
}

.cta-req {
  color: #ef4444;
  margin-left: 2px;
}

.cta-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cta-field-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.2s ease;
}

.cta-field input,
.cta-field textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #ffffff;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

.cta-field .cta-input-wrapper input {
  padding-left: 48px !important;
}

.cta-field input::-moz-placeholder, .cta-field textarea::-moz-placeholder {
  color: #64748b;
  opacity: 0.85;
}

.cta-field input::placeholder,
.cta-field textarea::placeholder {
  color: #64748b;
  opacity: 0.85;
}

/* Hover and Focus States */
.cta-field input:hover,
.cta-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.cta-field input:focus,
.cta-field textarea:focus {
  border-color: #8b5cf6;
  background: rgba(13, 13, 27, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.cta-input-wrapper:focus-within .cta-field-icon {
  color: #8b5cf6;
}

.cta-field-err {
  font-size: 0.72rem;
  color: #f87171;
  margin-top: -4px;
  min-height: 16px;
}

/* ── Trust badges row ── */
.cta-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 4px 0 8px;
}

@media (max-width: 480px) {
  .cta-trust-grid {
    grid-template-columns: 1fr;
  }
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
}

.cta-trust-item svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: #8b5cf6;
  flex-shrink: 0;
}

/* ── Submit button ── */
.cta-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
  width: 100%;
}

.cta-btn-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.cta-submit:hover:not(:disabled) .cta-btn-icon {
  transform: translate(3px, -3px);
}

.cta-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Spinner */
.cta-submit-spinner {
  display: inline-flex;
}

.cta-submit-spinner svg {
  width: 18px;
  height: 18px;
  animation: cta-rotate 0.8s linear infinite;
}

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

.cta-spin {
  stroke-dasharray: 40;
  stroke-dashoffset: 10;
}

/* ── Prefer email? link ── */
.cta-prefer-email {
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: -4px;
}

.cta-prefer-email a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-prefer-email a:hover {
  text-decoration: underline;
  color: #c084fc;
}

/* ── Success / Error banners ── */
.cta-form-success,
.cta-form-error {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.85rem;
}

.cta-form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.cta-form-success svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cta-form-success strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
  color: #a7f3d0;
}

.cta-form-success p {
  margin: 0;
  color: rgba(167, 243, 208, 0.75);
  font-size: 0.8rem;
}

.cta-form-error {
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.cta-form-error svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   LIGHT MODE OVERRIDES
   ============================================ */

body:not(.dark-mode) .cta-section {
  background: radial-gradient(circle at 0% 0%, #fcfbfe 0%, #f5f3ff 50%, #ffffff 100%);
}

body:not(.dark-mode) .cta-title {
  color: #0f172a;
}

body:not(.dark-mode) .cta-desc {
  color: #475569;
}

body:not(.dark-mode) .cta-perks li {
  color: #334155;
}

body:not(.dark-mode) .cta-perk-icon {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

body:not(.dark-mode) .cta-divider {
  background: rgba(0, 0, 0, 0.06);
}

body:not(.dark-mode) .cta-email {
  color: #0f172a;
}

body:not(.dark-mode) .cta-email:hover {
  color: #6366f1;
}

body:not(.dark-mode) .cta-email-caption {
  color: #64748b;
}

body:not(.dark-mode) .cta-form {
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.06);
  box-shadow: 0 25px 60px -15px rgba(99, 102, 241, 0.07), 0 10px 30px -10px rgba(0, 0, 0, 0.02);
}

body:not(.dark-mode) .cta-form:hover {
  box-shadow: 0 30px 70px -10px rgba(99, 102, 241, 0.1), 0 15px 40px -15px rgba(0, 0, 0, 0.04);
}

body:not(.dark-mode) .cta-field label {
  color: #1e293b;
}

body:not(.dark-mode) .cta-field input,
body:not(.dark-mode) .cta-field textarea {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

body:not(.dark-mode) .cta-field input::-moz-placeholder, body:not(.dark-mode) .cta-field textarea::-moz-placeholder {
  color: #94a3b8;
}

body:not(.dark-mode) .cta-field input::placeholder,
body:not(.dark-mode) .cta-field textarea::placeholder {
  color: #94a3b8;
}

body:not(.dark-mode) .cta-field input:hover,
body:not(.dark-mode) .cta-field textarea:hover {
  border-color: #cbd5e1;
}

body:not(.dark-mode) .cta-field input:focus,
body:not(.dark-mode) .cta-field textarea:focus {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

body:not(.dark-mode) .cta-input-wrapper:focus-within .cta-field-icon {
  color: #6366f1;
}

body:not(.dark-mode) .cta-trust-item {
  color: #64748b;
}

body:not(.dark-mode) .cta-prefer-email {
  color: #64748b;
}

body:not(.dark-mode) .cta-prefer-email a {
  color: #6366f1;
}

body:not(.dark-mode) .cta-prefer-email a:hover {
  color: #4f46e5;
}

/* ══════════════════════════
   MOBILE RESPONSIVENESS OVERRIDES
   ══════════════════════════ */
@media (max-width: 768px) {
  .cta-section {
    padding: 3.5rem 0 !important;
  }
  .cta-title {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 540px) {
  .cta-section {
    padding: 2.5rem 0 !important;
  }
  .cta-inner {
    padding: 0 1rem !important;
    gap: 36px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .cta-content {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .cta-title {
    font-size: 2.05rem !important;
    line-height: 1.25 !important;
  }
  .cta-desc {
    font-size: 0.95rem !important;
    line-height: 1.625 !important;
    margin-bottom: 28px !important;
  }
  .cta-perks {
    margin-bottom: 28px !important;
    gap: 12px !important;
  }
  .cta-perks li {
    font-size: 0.88rem !important;
  }
  .cta-divider {
    margin: 24px 0 !important;
  }
  .cta-email {
    font-size: 0.95rem !important;
    word-break: break-all !important;
    white-space: normal !important;
  }
  .cta-form {
    padding: 2rem 1.25rem !important;
    border-radius: 1.5rem !important;
    gap: 20px !important;
  }
  .cta-form-row {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .cta-trust-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .cta-submit {
    padding: 14px 24px !important;
    font-size: 0.92rem !important;
  }
}

@media (max-width: 480px) {
  .cta-section {
    padding: 2rem 0 !important;
  }
  .cta-inner {
    padding: 0 0.75rem !important;
  }
  .cta-title {
    font-size: 1.7rem !important;
  }
  .cta-desc {
    font-size: 0.88rem !important;
  }
  .cta-perks li {
    font-size: 0.84rem !important;
    gap: 10px !important;
  }
  .cta-perk-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .cta-email {
    font-size: 0.88rem !important;
  }
  .cta-form {
    padding: 1.5rem 1rem !important;
    border-radius: 1.25rem !important;
    gap: 16px !important;
  }
  .cta-field-icon {
    left: 12px !important;
    width: 16px !important;
    height: 16px !important;
  }
  .cta-field input,
  .cta-field textarea {
    padding: 12px !important;
    font-size: 0.88rem !important;
  }
  .cta-field .cta-input-wrapper input {
    padding-left: 40px !important;
  }
}

@media (max-width: 360px) {
  .cta-inner {
    padding: 0 0.5rem !important;
  }
  .cta-title {
    font-size: 1.5rem !important;
  }
  .cta-desc {
    font-size: 0.85rem !important;
  }
  .cta-email {
    font-size: 0.82rem !important;
  }
  .cta-form {
    padding: 1.25rem 0.75rem !important;
    border-radius: 1rem !important;
  }
}



