/* =========================================
   VisaSL Modal – Typography Isolation
   ========================================= */

.visasl-modal,
.visasl-modal * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
}

.visasl-modal {
  font-size: 14.5px;
  line-height: 1.45;
  color: #222;
}

/* Headings */
.visasl-modal h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.visasl-modal h3,
.visasl-modal h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

/* Labels */
.visasl-modal label {
  font-size: 14px;
  font-weight: 500;
}

/* Helper text */
.visasl-modal p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.visasl-modal input,
.visasl-modal select,
.visasl-modal textarea {
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 11px;
}

.visasl-modal button {
  font-size: 14.5px;
  line-height: 1.2;
}

.visasl-modal {
  font-size: 14px;          /* Astra-like */
  line-height: 1.38;
}

.visasl-modal label {
  margin-top: 10px;
}

.visasl-step h4 {
  margin-bottom: 10px;
}

.visasl-modal p {
  margin-bottom: 8px;
}


/* ======================================================
   MODAL OVERLAY & CONTAINER
   ====================================================== */

.visasl-modal-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visasl-modal {
  background: #ffffff;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 28px 26px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  color: #222;
}



/* CLOSE BUTTON */
.visasl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;

  border-radius: 8px; /* ← CHANGE ONLY THIS */

  border: none;
  background: #f1f1f1;
  color: #333;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.visasl-modal-close:hover,
.visasl-modal-close:active {
  background: #d139bf;
  color: #fff;
}


/* ======================================================
   HEADER / INTRO TEXT
   ====================================================== */

.visasl-modal h2 {
  text-align: center;
  margin-bottom: 8px;
}

.visasl-helper-text {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

/* ======================================================
   STEP INDICATOR
   ====================================================== */

.visasl-step-indicator {
  text-align: center;
  margin-bottom: 14px;
  font-weight: 600;
}

.visasl-step-indicator span {
  color: #d139bf;
}

/* PROGRESS BAR */
.visasl-progress-bar {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 22px;
}

.visasl-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #d139bf;
  transition: width 0.3s ease;
}

/* ======================================================
   FORM STEPS
   ====================================================== */

.visasl-step {
  display: none;
}

.visasl-step.active {
  display: block;
}

.visasl-step h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

/* INPUTS */
.visasl-step label {
  display: block;
  margin-top: 14px;
  font-weight: 500;
}

.visasl-step input,
.visasl-step select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.visasl-step input:focus,
.visasl-step select:focus {
  outline: none;
  border-color: #d139bf;
}

/* ======================================================
   RADIO GROUPS (Married / Single etc.)
   ====================================================== */

.visasl-radio-group {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.visasl-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ======================================================
   RANGE SLIDERS
   ====================================================== */

input[type="range"] {
  accent-color: #d139bf;
}

.visasl-range-value {
  margin-top: 6px;
  font-weight: 600;
  color: #444;
}

/* ======================================================
   SKILL PILLS
   ====================================================== */

.visasl-skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.visasl-skill-pill {
  background: #f7d6ef;
  color: #6a135d;
  padding: 2px 6px;              /* tighter */
  border-radius: 999px;          /* pill look */
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}


.visasl-pill-remove {
  background: none !important;
  border: none !important;
  margin-left: 4px;
  padding: 0;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
  color: #d139bf !important;     /* pink, not blue */
}

.visasl-pill-remove:hover {
  color: #b82fa8 !important;
}

/* Ensure rounded corners stay visible with scroll */
.visasl-modal {
  overflow: hidden; /* clip scrollbar inside */
}

/* Make results container scrollable instead */
.visasl-results-container {
  max-height: calc(90vh - 40px);
  overflow-y: auto;
  padding-right: 6px; /* prevents scrollbar overlap */
}


/* ======================================================
   BUTTONS
   ====================================================== */

/* Actions wrapper */
.visasl-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}


.visasl-step .visasl-actions {
  margin-top: 32px;
}

/* Buttons */
.visasl-modal button.visasl-next,
.visasl-modal button.visasl-back,
.visasl-modal button.visasl-submit {
  background-color: #d139bf !important;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

/* Hover / active */
.visasl-modal button.visasl-next:hover,
.visasl-modal button.visasl-back:hover,
.visasl-modal button.visasl-submit:hover,
.visasl-modal button.visasl-next:active,
.visasl-modal button.visasl-back:active,
.visasl-modal button.visasl-submit:active {
  background-color: #b52fa6 !important;
  color: #fff !important;
}

.visasl-modal input[type="submit"] {
  background-color: #d139bf !important;
  color: #fff !important;
}


/* ======================================================
   DISCLAIMER
   ====================================================== */

.visasl-disclaimer-inline {
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
  color: #666;
}

.visasl-disclaimer-inline a {
  color: #259bec;
  text-decoration: none;
}

/* ======================================================
   MOBILE
   ====================================================== */

@media (max-width: 600px) {
  .visasl-modal {
    padding: 22px 18px;
  }

  .visasl-actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* ======================================================
   RESULTS UI – PATHWAYS & COUNTRIES
   ====================================================== */

.visasl-score-summary {
    text-align: center;
    margin-bottom: 30px;
}

.visasl-best-pathway {
    text-align: center;
    background: #fff7fb;
    border: 1px solid #f0cfe6;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 30px;
}

.visasl-best-pathway-label {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
}

.visasl-best-pathway-value {
    font-size: 20px;
    color: #d139bf;
}

.visasl-best-pathway-note {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

/* ======================================================
   RESULTS CTA BUTTONS (BASE STYLE)
   ====================================================== */

.visasl-results-container .visasl-toggle-ai,
.visasl-results-container .visasl-toggle-provider {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none !important;
}

/* FORCE AI button pink (override Neve FSE) */
.visasl-results-container .visasl-toggle-ai {
    background-color: #d139bf !important;
    color: #fff !important;
}

.visasl-results-container .visasl-toggle-ai:hover {
    background-color: #b82fa8 !important;
}

/* Service Provider button (light blue variant) */
.visasl-results-container .visasl-toggle-provider {
    background-color: #e6f0ff !important;
    color: #1a5fd0 !important;
}

.visasl-results-container .visasl-toggle-provider:hover {
    background-color: #d6e6ff !important;
}

/* ======================================================
   COUNTRY LISTS
   ====================================================== */

.visasl-country-block {
    margin-top: 30px;
}

.visasl-section-title {
    font-size: 16px;
    margin-bottom: 14px;
}

.visasl-section-title.muted {
    color: #666;
}

/* Country row: label + bar */
.visasl-country-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

/* Country name + score column */
.visasl-country-label {
    width: 160px;
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.visasl-country-name {
    font-weight: 500;
}

.visasl-country-score {
    font-size: 13px;
    color: #444;
}

/* Horizontal eligibility bar */
.visasl-country-bar-wrapper {
    flex: 1;
    background: #f2f2f2;
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.visasl-country-bar {
    height: 100%;
    background: #d139bf;
    border-radius: 8px;
}

/* ======================================================
   MODIFIED UI
   ====================================================== */

/* Secondary pathway text toggle (NOT a button) */
.visasl-secondary-toggle {
    color: #1a5fd0;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin: 24px 0 10px;
}

.visasl-secondary-toggle:hover {
    opacity: 0.85;
}

/* Results action buttons wrapper */
.visasl-results-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 24px 0;
    flex-wrap: wrap;
}

/* Agent CTA message */
.visasl-agent-message {
    max-width: 560px;
    margin: 20px auto;
    text-align: center;
    font-size: 15px;
    color: #222;
    line-height: 1.6;
}

/* ======================================================
   DISCLAIMER
   ====================================================== */

.visasl-disclaimer {
    margin-top: 40px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.visasl-disclaimer a {
    color: #259bec;
    text-decoration: none;
    margin: 0 6px;
}

.visasl-learn-more-text {
    display: none;
    margin-top: 10px;
}