/* =============================================================
   VoxAI Contact Form — Premium Design
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Wrapper ─────────────────────────────────────────────── */
.voxai-cf-wrapper {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

/* ── Success ─────────────────────────────────────────────── */
.voxai-cf-success {
  background: #fff;
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
}
.voxai-cf-success-inner { max-width: 420px; margin: 0 auto; }
.voxai-cf-success-icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  color: #10b981;
  animation: voxcf-pop .4s cubic-bezier(.34,1.56,.64,1);
}
.voxai-cf-success-icon svg { width: 100%; height: 100%; }
@keyframes voxcf-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.voxai-cf-success-title { font-size: 26px; font-weight: 800; color: #0f172a; margin: 0 0 12px; letter-spacing: -.5px; }
.voxai-cf-success-msg { font-size: 15px; color: #64748b; line-height: 1.7; margin: 0 0 28px; }
.voxai-cf-reset { background: none; border: 2px solid #7c3aed; color: #7c3aed; padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all .2s; font-family: inherit; }
.voxai-cf-reset:hover { background: #7c3aed; color: #fff; }

/* ── Form Wrap ───────────────────────────────────────────── */
.voxai-cf-form-wrap {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.04);
  border: 1px solid #e2e8f0;
}

/* ── Header ──────────────────────────────────────────────── */
.voxai-cf-header {
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.voxai-cf-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.voxai-cf-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 60px;
  width: 140px; height: 140px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.voxai-cf-header-dot {
  width: 48px; height: 48px; background: rgba(255,255,255,.2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 4px;
  position: relative; z-index: 1;
}
.voxai-cf-header-dot::after { content: '🎯'; font-size: 22px; }
.voxai-cf-title {
  font-size: 26px; font-weight: 800; color: #fff;
  margin: 0 0 6px; letter-spacing: -.5px;
  position: relative; z-index: 1;
}
.voxai-cf-subtitle { font-size: 14px; color: rgba(255,255,255,.8); margin: 0; line-height: 1.6; position: relative; z-index: 1; }

/* ── Form body ───────────────────────────────────────────── */
.voxai-cf-form { padding: 36px 40px; }

/* ── Rows & Fields ───────────────────────────────────────── */
.voxai-cf-row { margin-bottom: 20px; }
.voxai-cf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 580px) { .voxai-cf-row-2 { grid-template-columns: 1fr; } .voxai-cf-header, .voxai-cf-form { padding: 24px 22px; } .voxai-cf-title { font-size: 20px; } }

/* ── Label ───────────────────────────────────────────────── */
.voxai-cf-label {
  display: block; font-size: 13px; font-weight: 700; color: #334155;
  margin-bottom: 7px; letter-spacing: .1px;
}
.voxai-cf-req { color: #ef4444; margin-left: 2px; }

/* ── Input Wrap ──────────────────────────────────────────── */
.voxai-cf-input-wrap {
  position: relative; display: flex; align-items: center;
}
.voxai-cf-icon {
  position: absolute; left: 13px; font-size: 16px; pointer-events: none;
  line-height: 1;
}
.voxai-cf-input {
  width: 100%; padding: 11px 14px 11px 40px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 14px; color: #1e293b; background: #f8fafc;
  transition: all .2s; outline: none;
  font-family: inherit;
}
.voxai-cf-input[type="datetime-local"] { padding-left: 40px; }
.voxai-cf-input:focus {
  border-color: #7c3aed; background: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.voxai-cf-input::placeholder { color: #94a3b8; }

/* ── Textarea ────────────────────────────────────────────── */
.voxai-cf-textarea-wrap { position: relative; }
.voxai-cf-textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-size: 14px; color: #1e293b; background: #f8fafc;
  transition: all .2s; outline: none; resize: vertical;
  font-family: inherit; min-height: 110px;
}
.voxai-cf-textarea:focus {
  border-color: #7c3aed; background: #fff;
  box-shadow: 0 0 0 4px rgba(124,58,237,.1);
}
.voxai-cf-textarea::placeholder { color: #94a3b8; }

/* ── Radio group ─────────────────────────────────────────── */
.voxai-cf-radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.voxai-cf-radio { display: none; }
.voxai-cf-radio-btn {
  display: inline-block; padding: 9px 16px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all .2s; background: #f8fafc;
  user-select: none;
}
.voxai-cf-radio-btn:hover { border-color: #7c3aed; color: #7c3aed; background: rgba(124,58,237,.05); }
.voxai-cf-radio:checked + .voxai-cf-radio-btn {
  border-color: #7c3aed; background: rgba(124,58,237,.1); color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}

/* ── Privacy / Checkbox ──────────────────────────────────── */
.voxai-cf-privacy-label {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; color: #64748b; line-height: 1.6;
}
.voxai-cf-checkbox { display: none; }
.voxai-cf-checkbox-box {
  width: 20px; height: 20px; border: 2px solid #e2e8f0; border-radius: 6px;
  background: #f8fafc; flex-shrink: 0; margin-top: 1px;
  transition: all .2s; display: flex; align-items: center; justify-content: center;
}
.voxai-cf-checkbox:checked + .voxai-cf-checkbox-box {
  background: #7c3aed; border-color: #7c3aed;
}
.voxai-cf-checkbox:checked + .voxai-cf-checkbox-box::after { content: '✓'; color: #fff; font-size: 12px; font-weight: 800; }
.voxai-cf-privacy-label a { color: #7c3aed; text-decoration: none; font-weight: 600; }
.voxai-cf-privacy-label a:hover { text-decoration: underline; }

/* ── Validation states ───────────────────────────────────── */
.voxai-cf-field.has-error .voxai-cf-input,
.voxai-cf-field.has-error .voxai-cf-textarea {
  border-color: #ef4444; background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}
.voxai-cf-field.is-valid .voxai-cf-input,
.voxai-cf-field.is-valid .voxai-cf-textarea {
  border-color: #10b981; background: #f0fdf4;
}
.voxai-cf-field.is-valid .voxai-cf-input-wrap::after {
  content: '✓'; position: absolute; right: 13px;
  color: #10b981; font-weight: 800; font-size: 14px;
}
.voxai-cf-error { display: block; font-size: 12px; color: #ef4444; margin-top: 5px; font-weight: 500; min-height: 18px; }
.voxai-cf-global-error {
  background: #fee2e2; border: 1px solid #fca5a5; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: #b91c1c; font-weight: 500;
  margin-bottom: 16px;
}

/* ── Submit ──────────────────────────────────────────────── */
.voxai-cf-submit {
  width: 100%; padding: 16px 28px;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  color: #fff; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .25s; letter-spacing: .2px;
  box-shadow: 0 4px 16px rgba(124,58,237,.35);
  font-family: inherit; margin-top: 8px;
  position: relative; overflow: hidden;
}
.voxai-cf-submit::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: .2s;
}
.voxai-cf-submit:hover::before { background: rgba(255,255,255,.08); }
.voxai-cf-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,.45); }
.voxai-cf-submit:active { transform: translateY(0); }
.voxai-cf-submit:disabled { opacity: .75; cursor: not-allowed; transform: none; }
.voxai-cf-submit-icon { font-size: 18px; transition: transform .2s; }
.voxai-cf-submit:hover .voxai-cf-submit-icon { transform: translateX(4px); }
.voxai-cf-submit-loader { display: inline-flex; align-items: center; gap: 8px; }
.voxai-cf-spin { width: 18px; height: 18px; animation: voxcf-spin .7s linear infinite; }
@keyframes voxcf-spin { to { stroke-dashoffset: -60; } }

/* ── Divider ─────────────────────────────────────────────── */
.voxai-cf-divider { border: none; border-top: 1px solid #f1f5f9; margin: 6px 0 20px; }
