/* ======================================================
   Root Color Variables (Elementor-aware)
   ====================================================== */
:root {
  --ama-primary: var(--e-global-color-primary, #FF8D50);
  --ama-secondary: var(--e-global-color-secondary, #E96468);

  --ama-text: #2c2c2c;
  --ama-muted: #6e6e6e;
  --ama-bg: #ffffff;

  --ama-card-shadow: rgba(0, 0, 0, 0.06);
  --ama-card-shadow-hover: rgba(0, 0, 0, 0.12);
}

/* ======================================================
   Layout Container
   ====================================================== */
.ama-advisor { 
  display:flex; 
  justify-content:center; 
  margin: 24px 0; 
}
.ama-card {
  width: min(900px, 100%);
  background: var(--ama-bg);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 36px var(--ama-card-shadow);
}

/* ======================================================
   Progress Bar
   ====================================================== */
.ama-progress { 
  height: 7px; 
  background: #ececec; 
  border-radius: 6px; 
  overflow: hidden; 
  margin-bottom: 22px; 
}
.ama-progress .bar { 
  display:block; 
  height: 100%; 
  background: linear-gradient(90deg, var(--ama-primary), var(--ama-secondary)); 
  width: 0%; 
  transition: width .4s ease; 
}

/* ======================================================
   Buttons
   ====================================================== */
.ama-btn {
  background: var(--ama-primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  cursor:pointer;
  font-weight: 600;
  transition: all .15s ease;
  font-size: 15px;
}
.ama-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}
.ama-btn.outline {
  background: transparent;
  color: var(--ama-primary);
  border: 2px solid var(--ama-primary);
}
.ama-btn.outline:hover {
  background: var(--ama-primary);
  color:#fff;
}

/* Smaller Reset Button */
.ama-reset {
  background: transparent;
  border: 2px solid var(--ama-primary);
  border-radius: 12px;
  padding: 10px 18px;
  color: var(--ama-primary);
  transition: all 0.2s ease;
}
.ama-reset:hover { 
  background: var(--ama-primary); 
  color: #fff; 
}

/* ======================================================
   Questions
   ====================================================== */
.ama-question { 
  padding: 12px 0; 
}
.ama-options {
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.ama-option {
  background:#ffffff;
  border:2px solid #e8e8e8;
  border-radius:14px;
  padding:14px;
  cursor:pointer;
  transition:all .15s ease;
  font-weight:600;
  text-align:center;
}
.ama-option:hover {
  border-color: var(--ama-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* ======================================================
   Results Grid
   ====================================================== */
.ama-results .ama-grid {
  display:grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 14px;
}

/* ======================================================
   Result Cards
   ====================================================== */
.ama-rec {
  background:#ffffff;
  border:1px solid #e5e5e5;
  border-radius:18px;
  padding:22px;
  transition:all 0.25s ease;
  box-shadow: 0 6px 18px var(--ama-card-shadow);
}
.ama-rec:hover {
  transform:translateY(-4px);
  box-shadow: 0 10px 24px var(--ama-card-shadow-hover);
}

/* Title */
.ama-rec h4 {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ama-text);
}

/* Score */
.ama-score { 
  font-size:13px; 
  color:#219653; 
  font-weight:600; 
  margin-bottom:8px; 
}

.ama-score-badge {
    background: #e8f3ff;
    color: #1a73e8;
    padding: 6px 10px;
    border-left: 4px solid #1a73e8;
    font-size: 13px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Reason */
.ama-reason { 
  color: var(--ama-muted); 
  font-size: 0.92rem; 
  line-height: 1.45; 
  margin-bottom: 14px; 
}

/* ======================================================
   Pathway Badge (Highlight Card)
   ====================================================== */
.ama-rec .ama-badge-pathway {
  display: inline-block;
  background: linear-gradient(90deg, #ffe07c, #ffd54f);
  color: #333;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Make pathway card appear special */
.ama-rec.pathway-highlight {
  border: 2px solid var(--ama-primary);
  box-shadow: 0 8px 22px rgba(255,141,80,0.25);
}

/* ======================================================
   Summary Block
   ====================================================== */
.ama-summary {
  background: #f7f9fc;
  border: 1px solid #dde6ef;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 24px;
}
.ama-summary pre {
  font-size: 0.9rem;
  color: #444;
  max-height: 260px;
  overflow-y: auto;
}
.ama-toggle-summary {
  background: transparent;
  border: 0;
  color: var(--ama-primary);
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  margin-bottom: 10px;
}
.ama-toggle-summary:hover { 
  text-decoration: underline; 
}

/* ======================================================
   File Upload
   ====================================================== */
#ama-cv {
  display:block;
  margin:12px auto;
  padding:14px;
  border:2px dashed var(--ama-primary);
  border-radius:12px;
  width:100%;
  max-width:380px;
  cursor:pointer;
  background:#fff;
  transition: all .2s ease;
}
#ama-cv:hover { 
  border-color: var(--ama-secondary);
  background: #fff4ee;
}

/* ======================================================
   Animation
   ====================================================== */
.animate-in { animation: fadeInUp .28s ease both; }
@keyframes fadeInUp { 
  from { opacity:0; transform:translateY(8px);} 
  to{opacity:1;transform:none;} 
}


/* ======================================================
   Autocomplete for "I Already Completed a Course"
   ====================================================== */
.ama-autocomplete {
  position: relative;
  margin-top: 8px;
}

#ama-qualification-search {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #eee;
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#ama-qualification-search:focus {
  outline: none;
  border-color: var(--ama-primary);
  box-shadow: 0 0 0 2px rgba(255, 141, 80, 0.15);
}

.ama-autocomplete-list {
  position: absolute;
  top: 102%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 50;
  display: none;
}

.ama-ac-item {
  padding: 9px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease;
}

.ama-ac-item:hover,
.ama-ac-item.is-highlighted {
  background: #f7f9fb;
}

.ama-ac-empty {
  color: #999;
  font-style: italic;
  cursor: default;
}

.ama-help {
  margin: 8px 0 4px;
  font-size: 0.85rem;
  color: #777;
}

.ama-ai-badge {
    display: inline-block;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #2563eb; /* blue-ish */
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}