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

:root {
  --abs-blue: #1e6bb8;
  --abs-blue-dark: #155a9a;
  --abs-blue-light: #e8f1fb;
  --abs-orange: #f5a623;
  --abs-orange-dark: #e09010;
  --abs-green: #25D366;
  --abs-success: #10b981;
  --abs-bg: #edf4fb;
  --abs-white: #ffffff;
  --abs-text: #1a2332;
  --abs-muted: #6b7a8d;
  --abs-border: #d0dce8;
  --abs-radius: 16px;
  --abs-shadow: 0 8px 32px rgba(30,107,184,0.12);
  --abs-shadow-hover: 0 16px 48px rgba(30,107,184,0.22);
}

.absvisa-wrap * {
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ============ WRAPPER ============ */
.absvisa-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ============ HEADER ============ */
.absvisa-header {
  text-align: center;
  padding: 32px 20px 0;
}
.absvisa-header-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--abs-orange), #ff8c00);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(245,166,35,0.4);
}
.absvisa-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--abs-blue);
  line-height: 1.25;
  margin: 0 0 10px;
}
.absvisa-subtitle {
  color: var(--abs-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

/* ============ CARD ============ */
.absvisa-card {
  background: var(--abs-white);
  border-radius: var(--abs-radius);
  box-shadow: var(--abs-shadow);
  padding: 32px 36px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30,107,184,0.08);
  transition: box-shadow 0.3s ease;
}
.absvisa-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--abs-blue), var(--abs-orange));
}
.absvisa-card:hover { box-shadow: var(--abs-shadow-hover); }

/* ============ CONSULTANT ============ */
.absvisa-consultant {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--abs-blue-light);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(30,107,184,0.12);
}
.absvisa-consultant-avatar {
  position: relative;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
}
.absvisa-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--abs-blue), var(--abs-orange));
  z-index: 0;
  box-shadow: 0 8px 18px rgba(30,107,184,0.16);
}
.absvisa-avatar-initials {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--abs-blue), var(--abs-blue-dark));
  color: white;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.absvisa-avatar-photo {
  position: relative;
  z-index: 1;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  min-width: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center center;
  display: block !important;
  border: 2px solid white;
  background: white;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
}
.absvisa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--abs-green);
  border-radius: 50%;
  border: 2px solid white;
  z-index: 2;
  animation: absPulse 2s infinite;
}
@keyframes absPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(37,211,102,0); }
}
.absvisa-consultant-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--abs-text);
}
.absvisa-consultant-info span {
  font-size: 13px;
  color: var(--abs-muted);
}
.absvisa-status-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--abs-success);
  font-weight: 600;
  margin-top: 3px;
}
.absvisa-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--abs-success);
  animation: absPulse 1.5s infinite;
}

/* ============ STEPS ============ */
.absvisa-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.absvisa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.4;
  transition: all 0.3s;
}
.absvisa-step.active { opacity: 1; }
.absvisa-step.done { opacity: 0.9; }
.absvisa-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--abs-border);
  color: var(--abs-muted);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.absvisa-step.active .absvisa-step-num {
  background: var(--abs-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(30,107,184,0.35);
}
.absvisa-step.done .absvisa-step-num {
  background: var(--abs-success);
  color: white;
}
.absvisa-step span {
  font-size: 11px;
  font-weight: 600;
  color: var(--abs-muted);
  white-space: nowrap;
}
.absvisa-step.active span { color: var(--abs-blue); }
.absvisa-step-line {
  flex: 1;
  height: 2px;
  background: var(--abs-border);
  min-width: 40px;
  margin: 0 4px;
  margin-bottom: 18px;
  transition: background 0.3s;
}
.absvisa-step-line.done { background: var(--abs-success); }

/* ============ FORM FIELDS ============ */
.absvisa-form-step {
  display: none;
  animation: absSlideIn 0.35s ease;
}
.absvisa-form-step.active { display: block; }

@keyframes absSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.absvisa-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .absvisa-fields-grid { grid-template-columns: 1fr; }
  .absvisa-card { padding: 20px 18px 24px; }
}

.absvisa-field { display: flex; flex-direction: column; gap: 6px; }
.absvisa-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--abs-text);
}
.absvisa-label .req { color: var(--abs-orange); }
.absvisa-label .optional { font-weight: 400; color: var(--abs-muted); font-size: 12px; }

.absvisa-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.absvisa-input,
.absvisa-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--abs-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--abs-text);
  background: #f8fafd;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.absvisa-textarea {
  resize: vertical;
  min-height: 110px;
}
.absvisa-input:focus,
.absvisa-textarea:focus {
  border-color: var(--abs-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(30,107,184,0.12);
}
.absvisa-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.absvisa-char-count {
  text-align: right;
  font-size: 11px;
  color: var(--abs-muted);
  margin-top: 4px;
}

/* ============ PRIVACY ============ */
.absvisa-privacy {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--abs-muted);
  background: #f0f7f4;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(16,185,129,0.2);
  color: #065f46;
}

/* ============ CAPTCHA ============ */
.absvisa-captcha {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  min-height: 58px;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1.5px solid #d6e3ef;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: var(--abs-text);
  box-shadow: 0 8px 22px rgba(30,107,184,0.08);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.absvisa-captcha:hover {
  border-color: rgba(30,107,184,0.35);
  box-shadow: 0 12px 28px rgba(30,107,184,0.13);
}
.absvisa-captcha:has(input:focus-visible) {
  outline: 3px solid rgba(30,107,184,0.18);
  outline-offset: 2px;
}
.absvisa-captcha input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.absvisa-captcha-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.absvisa-captcha-box {
  width: 26px;
  height: 26px;
  border: 2px solid #b7c6d6;
  border-radius: 7px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.08);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.absvisa-captcha-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--abs-text);
}
.absvisa-captcha input:checked ~ .absvisa-captcha-main .absvisa-captcha-box {
  border-color: var(--abs-success);
  background: var(--abs-success);
  box-shadow: 0 4px 12px rgba(16,185,129,0.28);
}
.absvisa-captcha input:checked ~ .absvisa-captcha-main .absvisa-captcha-box::after {
  content: '';
  width: 7px;
  height: 13px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-top: -3px;
}
.absvisa-captcha-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef6ff;
  color: var(--abs-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.absvisa-captcha:has(input:checked) {
  border-color: rgba(16,185,129,0.45);
  background: linear-gradient(180deg, #ffffff, #f2fbf7);
}
.absvisa-captcha:has(input:checked) .absvisa-captcha-badge {
  background: #e8f8ef;
  color: var(--abs-success);
}

/* ============ BUTTONS ============ */
.absvisa-btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
}
.absvisa-btn-next,
.absvisa-btn-submit {
  flex: 1;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.absvisa-btn-next {
  background: linear-gradient(135deg, var(--abs-blue), var(--abs-blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(30,107,184,0.35);
}
.absvisa-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,107,184,0.45);
}
.absvisa-btn-next .btn-arrow { transition: transform 0.2s; }
.absvisa-btn-next:hover .btn-arrow { transform: translateX(4px); }
.absvisa-btn-back {
  padding: 13px 20px;
  background: transparent;
  border: 1.5px solid var(--abs-border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--abs-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.absvisa-btn-back:hover {
  border-color: var(--abs-blue);
  color: var(--abs-blue);
}
.absvisa-btn-submit {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}
.absvisa-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
.absvisa-btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.wa-icon { flex-shrink: 0; }
.spin { animation: absRotate 0.8s linear infinite; }
@keyframes absRotate { to { transform: rotate(360deg); } }

/* ============ ALERT ============ */
.absvisa-alert {
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.absvisa-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
.absvisa-alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

/* ============ SUCCESS STATE ============ */
.absvisa-success {
  text-align: center;
  padding: 40px 20px;
  animation: absSlideIn 0.5s ease;
}
.absvisa-success-icon { font-size: 52px; margin-bottom: 16px; }
.absvisa-success h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--abs-text);
  margin: 0 0 10px;
}
.absvisa-success p { color: var(--abs-muted); margin: 0 0 24px; }
.absvisa-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: all 0.3s;
}
.absvisa-wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.55);
  color: white;
}
.absvisa-lead-id {
  font-size: 12px;
  color: var(--abs-muted);
  margin-top: 16px;
}

/* ============ FLOATING WA BUTTON ============ */
.absvisa-floating-wa {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  animation: absFloatIn 0.5s ease;
}
@keyframes absFloatIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.absvisa-floating-wa a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transition: all 0.3s;
  animation: absBounce 2s infinite;
}
.absvisa-floating-wa a:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.65);
}
@keyframes absBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
