/* ==== Resume Analyzer: Resume Builder visual match ==== */

#resume-analyzer{
  --brand:#3154D4;
  --brand-dark:#10365F;
  --brand-soft:#EEF4FF;
  --bg:#F6F9FC;
  --card:#FFFFFF;
  --ink:#111827;
  --muted:#5C6882;
  --border:#DCE6F5;
  --soft:#F8FBFF;
  --radius:28px;
}

html,
body{
  overflow-x:hidden;
}

#resume-analyzer.ra-wrap{
  background:var(--bg);
  padding:1rem 0 2rem;
  color:var(--ink);
}

#resume-analyzer .interview-container,
#resume-analyzer .ra-container{
  width:min(1150px, 92%);
  margin:0 auto;
}

/* =========================================================
   HERO SECTION
========================================================= */

#resume-analyzer .ra-hero-shell{
  margin-bottom:36px;
  padding:36px;
  border-radius:0 0 14px 14px;

  background:
    radial-gradient(circle at 6% 0%, rgba(49,84,212,.12), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(255,201,87,.14), transparent 28%),
    #F7FAFF;

  box-shadow:0 18px 30px rgba(16,54,95,.08);
}

#resume-analyzer .hero{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;

  min-height:330px;

  padding:
    clamp(34px, 5vw, 72px)
    clamp(34px, 5vw, 52px);

  border:1px solid #CFE0FF;
  border-radius:28px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.96) 0%,
      rgba(247,250,255,.96) 42%,
      rgba(239,245,255,.96) 100%
    );
}

#resume-analyzer .hero-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;

  margin:0 0 clamp(34px, 4vw, 44px);

  padding:9px 17px;

  border:1px solid #CFE0FF;
  border-radius:999px;

  background:#EEF4FF;
  color:var(--brand);

  font-size:14px;
  font-weight:800;
  letter-spacing:.14em;
}

#resume-analyzer .hero-title{
  max-width:760px;
  margin:0;

  color:var(--brand-dark);

  font-size:clamp(42px, 6.2vw, 78px);
  font-weight:900;
  line-height:.98;
  letter-spacing:-.055em;
}

#resume-analyzer .hero-title .accent{
  color:var(--brand);
}

#resume-analyzer .hero-subtitle{
  max-width:760px;

  margin:clamp(24px, 3vw, 32px) 0 0;

  color:#53617B;

  font-size:clamp(18px, 2vw, 22px);
  line-height:1.5;
}

/* =========================================================
   WORKSPACE
========================================================= */

#resume-analyzer .ra-workspace{
  display:flex;
  justify-content:center;
}

#resume-analyzer .ra-editor-panel{
  width:100%;
  max-width:860px;
}

/* =========================================================
   TOP TABS
========================================================= */

#resume-analyzer .ra-tabs{
  display:flex;
  align-items:center;
  gap:16px;

  margin:0 0 18px;

  padding:12px;

  border:1px solid var(--border);
  border-radius:999px;

  background:rgba(255,255,255,.84);

  box-shadow:0 10px 28px rgba(16,54,95,.08);
}

#resume-analyzer .ra-tabs button,
#resume-analyzer .ra-tabs a{
  border:0;
  border-radius:999px;

  padding:15px 24px;

  background:#F3F6FB;
  color:#53617B;

  font:inherit;
  font-weight:800;
  text-decoration:none;
  line-height:1;
}

#resume-analyzer .ra-tabs button.active{
  background:var(--brand);
  color:#fff;

  box-shadow:0 10px 22px rgba(49,84,212,.25);
}

#resume-analyzer .ra-tabs .ra-tab-link--cta{
  margin-left:auto;
}

/* =========================================================
   MAIN CARD
========================================================= */

#resume-analyzer .ra-card{
  overflow:hidden;

  background:var(--card);

  border:1px solid var(--border);
  border-radius:28px;

  box-shadow:0 14px 36px rgba(16,54,95,.08);
}

#resume-analyzer .ra-card > header{
  min-height:118px;

  padding:28px 28px 20px;

  border-bottom:1px solid #EEF2F7;

  background:
    radial-gradient(circle at 92% 0%, rgba(49,84,212,.08), transparent 38%),
    #FFFFFF;
}

#resume-analyzer .ra-card > header h2{
  margin:0 0 10px;

  color:var(--ink);

  font-size:26px;
  font-weight:900;
  letter-spacing:-.04em;
}

#resume-analyzer .ra-card > header p{
  margin:0;

  color:var(--muted);

  font-size:16px;
  line-height:1.55;
}

#resume-analyzer .ra-panel{
  padding:28px;
  background:#fff;
}

/* =========================================================
   DROPZONE
========================================================= */

#resume-analyzer .dropzone{
  display:flex;
  align-items:center;
  gap:18px;

  min-height:130px;

  padding:22px;

  border:1.5px dashed #C9D8EF;
  border-radius:22px;

  background:#F8FBFF;

  cursor:pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

#resume-analyzer .dropzone:hover,
#resume-analyzer .dropzone.is-drag{
  transform:translateY(-1px);

  border-color:var(--brand);

  background:#fff;

  box-shadow:0 12px 24px rgba(49,84,212,.12);
}

#resume-analyzer .dropzone__icon{
  display:grid;
  place-items:center;

  width:58px;
  height:58px;

  border-radius:18px;

  background:var(--brand);
  color:#fff;

  font-size:30px;
  font-weight:900;

  box-shadow:0 12px 22px rgba(49,84,212,.22);
}

#resume-analyzer .dropzone__title{
  margin-bottom:5px;

  color:var(--ink);

  font-size:18px;
  font-weight:900;
}

#resume-analyzer .dropzone__hint,
#resume-analyzer .file-name,
#resume-analyzer .help,
#resume-analyzer .optional{
  color:var(--muted);
  font-size:.92rem;
}

#resume-analyzer .file-name{
  min-height:22px;

  margin:12px 2px 16px;

  color:var(--brand);
  font-weight:800;
}

/* =========================================================
   FORM GRID
========================================================= */

#resume-analyzer .ra-grid{
  display:grid;
  gap:18px;
}

#resume-analyzer label{
  display:flex;
  flex-direction:column;
  gap:8px;

  color:var(--ink);

  font-size:15px;
  font-weight:800;
}

#resume-analyzer textarea,
#resume-analyzer input,
#resume-analyzer select{
  width:100%;

  border:1px solid #D5E0F0;
  border-radius:18px;

  padding:16px 18px;

  background:#FAFCFF;
  color:var(--ink);

  font:inherit;
  font-size:15px;

  outline:none;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

#resume-analyzer textarea:focus,
#resume-analyzer input:focus,
#resume-analyzer select:focus{
  border-color:var(--brand);

  background:#fff;

  box-shadow:0 0 0 4px rgba(49,84,212,.12);
}

#resume-analyzer textarea{
  resize:vertical;
  min-height:170px;
}

#resume-analyzer textarea::placeholder,
#resume-analyzer input::placeholder{
  color:#6B7280;
  font-weight:700;
}

/* =========================================================
   ACTIONS
========================================================= */

#resume-analyzer .ra-actions{
  display:flex;
  align-items:center;
  gap:14px;

  margin-top:22px;
}

#resume-analyzer .cta-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  border:0;
  border-radius:999px;

  padding:16px 28px;

  background:var(--brand);
  color:#fff;

  font-weight:900;

  cursor:pointer;

  box-shadow:0 12px 24px rgba(49,84,212,.24);
}

#resume-analyzer .cta-primary:hover{
  transform:translateY(-1px);
}

#resume-analyzer .cta-primary:disabled{
  opacity:.56;
  cursor:not-allowed;
  box-shadow:none;
}

#resume-analyzer .loading{
  color:var(--brand);
  font-weight:900;
}

#resume-analyzer .help{
  margin-top:14px;
  line-height:1.5;
}

#resume-analyzer .notice,
#resume-analyzer .inline-banner{
  margin-top:14px;

  padding:12px 14px;

  border-radius:16px;

  font-size:14px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:980px){

  #resume-analyzer .ra-workspace{
    display:block;
  }

}

@media (max-width:640px){

  #resume-analyzer .interview-container,
  #resume-analyzer .ra-container{
    width:min(100% - 24px, 1150px);
  }

  #resume-analyzer .ra-hero-shell{
    padding:14px;
    margin-bottom:24px;
  }

  #resume-analyzer .hero{
    min-height:auto;
    border-radius:22px;
  }

  #resume-analyzer .hero-title{
    font-size:clamp(38px, 11vw, 54px);
  }

  #resume-analyzer .ra-tabs{
    overflow-x:auto;
    border-radius:24px;
  }

  #resume-analyzer .ra-tabs .ra-tab-link--cta{
    margin-left:0;
  }

  #resume-analyzer .ra-card > header,
  #resume-analyzer .ra-panel{
    padding:20px;
  }

  #resume-analyzer .dropzone{
    flex-direction:column;
    align-items:flex-start;
  }

}

/* ============================================================
   RESUME ANALYZER HERO — MATCH SKILL GAP HERO
============================================================ */

#resume-analyzer .analyzer-hero-shell,
#resume-analyzer .interview-container {
  width: min(1150px, 92%) !important;
  max-width: 1150px !important;
  margin: 0 auto !important;
  padding: 18px 0 0 !important;
  background: transparent !important;
}

#resume-analyzer .hero,
#resume-analyzer .analyzer-hero {
  width: 100% !important;
  max-width: 1150px !important;
  margin: 0 auto 24px !important;
  padding: clamp(1.4rem, 3vw, 2.2rem) !important;
  border-radius: 28px !important;
  align-items: flex-start !important;
  text-align: left !important;
}

#resume-analyzer .hero-kicker {
  margin: 0 0 0.9rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.08em !important;
}

#resume-analyzer .hero-title {
  max-width: 820px !important;
  margin: 0 !important;
  font-size: clamp(2.1rem, 5vw, 4.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  font-weight: 800 !important;
}

#resume-analyzer .hero-subtitle {
  max-width: 58rem !important;
  margin: clamp(0.85rem, 1.5vw, 1.1rem) 0 0 !important;
  font-size: clamp(1rem, 1.4vw, 1.2rem) !important;
  line-height: 1.6 !important;
}

/* ============================================================
   FINAL RESUME ANALYZER WIDTH + WRAPPER FIX
============================================================ */

/* remove outer wrapper effect */
#resume-analyzer .ra-hero-shell{
  width:min(1150px,92%) !important;
  max-width:1150px !important;

  margin:0 auto 24px !important;

  padding:0 !important;

  background:transparent !important;

  border:0 !important;
  border-radius:0 !important;

  /* MATCH FORM SHADOW */
  box-shadow:0 14px 36px rgba(16,54,95,.08) !important;
}

/* make workspace same width as hero */
#resume-analyzer .ra-container{
  width:min(1150px,92%) !important;
  max-width:1150px !important;

  margin:0 auto !important;

  padding:0 !important;

  background:transparent !important;
}

/* remove fake wrapper around form */
#resume-analyzer .ra-workspace{
  width:100% !important;
  max-width:1150px !important;

  margin:0 auto !important;

  background:transparent !important;

  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;

  padding:0 !important;
}

/* make form card full width */
#resume-analyzer .ra-editor-panel{
  width:100% !important;
  max-width:1150px !important;

  padding:0 !important;

  background:transparent !important;

  border:0 !important;
  box-shadow:none !important;
}

/* tabs same width as hero */
#resume-analyzer .ra-tabs{
  width:100% !important;
  max-width:1150px !important;

  margin:0 auto 18px !important;
}

/* form card width */
#resume-analyzer .ra-card{
  width:100% !important;
}

/* mobile */
@media (max-width:640px){

  #resume-analyzer .ra-hero-shell,
  #resume-analyzer .ra-container,
  #resume-analyzer .ra-workspace,
  #resume-analyzer .ra-editor-panel,
  #resume-analyzer .ra-tabs{
    width:min(100%,calc(100% - 20px)) !important;
  }
}

/* Requested cleanup: keep rounded hero card, remove only outer/background wrappers */
#resume-analyzer .ra-hero-shell{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 14px 36px rgba(16,54,95,.08) !important;}
#resume-analyzer.ra-wrap{
  background: transparent !important;
}

/* Ensure analyzer hero shadow is visible behind the primary hero card */
#resume-analyzer .ra-hero-shell .hero {
  box-shadow: 0 14px 36px rgba(16,54,95,.08) !important;
}

/* Remove residual bottom/background container behind analyzer hero */
#resume-analyzer .ra-hero-shell {
  box-shadow: none !important;
}
