/* =========================================================================
   14-SECOND INSTANT ENQUIRY MODAL (TAKE THE FIRST STEP TOWARDS YOUR DREAM CAREER)
   Exact replica of photo_6264860025364877517_y
   ========================================================================= */

.instant-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

.instant-lead-overlay * {
  box-sizing: border-box;
}

.instant-lead-overlay.active {
  opacity: 1;
  visibility: visible;
}

.instant-lead-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 94vh;
  background: linear-gradient(135deg, #e8f9f6 0%, #d4f4ee 45%, #def7f3 100%);
  border-radius: 28px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.instant-lead-overlay.active .instant-lead-container {
  transform: scale(1) translateY(0);
}

/* Close Button Top-Right */
.instant-lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.instant-lead-close:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.08) rotate(90deg);
  border-color: #cbd5e1;
}

/* =========================================================================
   LEFT SIDE (GRAPHIC / ART PANEL)
   ========================================================================= */
.instant-lead-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 24px 24px 32px;
  overflow: hidden;
  background: transparent;
}

/* Background wave decoration */
.instant-lead-left-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: 1;
}

.instant-lead-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Logo */
.instant-lead-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.instant-lead-logo-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #047857;
  display: flex;
  align-items: center;
}

.instant-lead-logo-text span {
  color: #0f766e;
}

.instant-lead-logo-tagline {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* Badge */
.instant-lead-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 4px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* Title & Subtitle */
.instant-lead-title {
  font-size: 27px;
  font-weight: 850;
  line-height: 1.18;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.025em;
}

.instant-lead-title .highlight-dream {
  color: #00a884;
  background: linear-gradient(135deg, #00a884 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.instant-lead-sub {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0 0 16px 0;
}

/* 4 Feature Points */
.instant-lead-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 16px;
  max-width: 380px;
}

.instant-lead-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.instant-lead-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.instant-lead-feature-icon.cyan {
  background: #e0f2fe;
  color: #0284c7;
}

.instant-lead-feature-icon.blue {
  background: #dbeafe;
  color: #2563eb;
}

.instant-lead-feature-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.instant-lead-feature-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.instant-lead-feature-text {
  display: flex;
  flex-direction: column;
}

.instant-lead-feature-text strong {
  font-size: 13px;
  font-weight: 750;
  color: #1e293b;
  line-height: 1.25;
}

.instant-lead-feature-text span {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

/* Counsellor + Pointer Graphic */
.instant-lead-counselor-wrap {
  margin-top: auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}

.instant-lead-counselor-img {
  max-height: 195px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
}

/* =========================================================================
   RIGHT SIDE (THE ENQUIRY FORM CARD)
   ========================================================================= */
.instant-lead-right {
  padding: 16px 18px 16px 0;
  display: flex;
  align-items: center;
}

.instant-lead-card {
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 26px 20px 26px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Card Header */
.instant-card-header {
  margin-bottom: 16px;
}

.instant-card-title {
  font-size: 24px;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.instant-card-title span {
  color: #00a884;
}

.instant-card-sub {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Form Styles */
.instant-lead-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.instant-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.instant-form-group {
  display: flex;
  flex-direction: column;
}

.instant-form-label {
  font-size: 11.5px;
  font-weight: 650;
  color: #334155;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.instant-form-label svg {
  flex-shrink: 0;
}

.instant-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.instant-input-field,
.instant-select-field {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12.5px;
  color: #0f172a;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.instant-input-field:focus,
.instant-select-field:focus {
  border-color: #00a884;
  box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.15);
}

.instant-input-field::placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.instant-select-field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px;
  padding-right: 28px;
  cursor: pointer;
}

/* Submit Button */
.instant-submit-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #00b48f 0%, #009677 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 750;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 168, 132, 0.3);
  transition: all 0.25s ease;
  margin-top: 4px;
}

.instant-submit-btn:hover {
  background: linear-gradient(135deg, #00c49d 0%, #00876b 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 168, 132, 0.4);
}

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

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

/* Privacy Text */
.instant-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: #64748b;
  margin-top: 9px;
  text-align: center;
}

/* 3 Micro Trust Badges */
.instant-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.instant-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.instant-trust-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.instant-trust-info {
  display: flex;
  flex-direction: column;
}

.instant-trust-info strong {
  font-size: 11px;
  font-weight: 750;
  color: #1e293b;
  line-height: 1.2;
}

.instant-trust-info span {
  font-size: 9.5px;
  color: #64748b;
  line-height: 1.25;
}

/* Success View */
.instant-success-box {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 10px;
}

.instant-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15);
  animation: instantPulse 1.5s infinite;
}

@keyframes instantPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.instant-success-title {
  font-size: 22px;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.instant-success-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 18px 0;
  max-width: 320px;
}

.instant-success-close {
  padding: 10px 24px;
  background: #00a884;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}

/* =========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================= */
@media (max-width: 900px) {
  .instant-lead-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .instant-lead-left {
    display: none; /* Mobile view prioritizes the fast converting form */
  }

  .instant-lead-right {
    padding: 24px 20px 20px 20px;
  }

  .instant-lead-card {
    padding: 18px 18px;
    box-shadow: none;
    border: none;
  }

  .instant-lead-close {
    top: 10px;
    right: 10px;
    background: #f1f5f9;
  }
}

@media (max-width: 540px) {
  .instant-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .instant-trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .instant-card-title {
    font-size: 20px;
  }

  .instant-submit-btn {
    height: 42px;
    font-size: 14px;
  }
}
