:root{
  /* layout dials */
  --hero-top: 25vh;       /* space from nav down to hero text */
  --hero-bottom: 16vh;    /* space from hero text down to next section */
  --bridge: 90px;         /* how much the panel overlaps the hero fade */

  /* theme */
  --glass: rgba(0,0,0,.55);
  --glass-dark: rgba(0,0,0,.75);
  --brand: #ba5533;
  --text: #fff;
  --body: #000;           /* unify background black to avoid a thin seam line */
  --card: #121212;
  --muted: #b7b7b7;
  --radius: 12px;
  --max: 1100px;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font:16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:#ececec;
  background:var(--body);
  display:flex;            /* sticky-footer layout */
  flex-direction:column;
}

/* shared page container */
.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* ========== NAV ========== */
.nav{
  position:fixed; inset:0 0 auto 0; height:68px; z-index:50;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
  background:transparent;
}
.nav .inner{
  width:100%; max-width:var(--max); padding:0 20px;
  display:flex; align-items:center; justify-content:space-between;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); font-weight:600; letter-spacing:.2px}
.brand img{height: 33px; width:auto; display:block}
.menu{display:flex; gap:22px; align-items:center}
.menu a{color:var(--text); text-decoration:none; font-weight:600; padding:10px 14px; border-radius:8px; transition:opacity .2s ease, background .2s ease}
.menu a:hover{opacity:.9}
.nav.scrolled{
  background:var(--glass);
  backdrop-filter:saturate(120%) blur(12px);
  box-shadow:0 6px 30px rgba(0,0,0,.28);
}

/* ========== HERO ========== */
.hero{
  position:relative;
.hero{ transform:translateZ(0); will-change: transform; }

  /* fixed visual spacing to stop "jumping" when dropdowns open */
  min-height: clamp(520px, 62vh, 760px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding-top: var(--hero-top);
  padding-bottom: var(--hero-bottom);
  background:#000;
  overflow:hidden;
}
/* background image */
.hero::before{
  content:""; position:absolute; inset:-4px;
  background:url('images/main1400x600.jpg') center / cover no-repeat;
  filter:brightness(.72) saturate(105%);
}
/* top vignette + bottom fade (black in the bottom --bridge zone) */
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.35) 0%,
      rgba(0,0,0,.25) 18%,
      rgba(0,0,0,.15) 38%,
      rgba(0,0,0,.45) 62%,
      rgba(0,0,0,.88) calc(100% - var(--bridge)),
      #000 100%   /* solid black for the overlap zone */
    );
}
.hero-content{position:relative; z-index:2; text-align:center; padding:0 20px; max-width:900px; color:#fff}
.eyebrow{opacity:.9; font-weight:600; letter-spacing:.12em; text-transform:uppercase; font-size:.78rem}
.title{margin:.35rem 0 .6rem; font-size:clamp(28px, 5vw, 56px); line-height:1.02; font-weight:800; text-wrap:balance}
.subtitle{font-size:clamp(16px, 1.8vw, 20px); color:#f5f5f5; opacity:.92; margin:0 auto 18px; max-width:52ch}
.cta{display:inline-block; background:var(--brand); color:#1a1a1a; font-weight:800; text-decoration:none; padding:12px 20px; border-radius:999px; transition:transform .15s ease, filter .15s ease}
.cta:hover{transform:translateY(-1px); filter:saturate(110%)}

/* ========== CONTENT ========== */
main{flex:1; background:#000}

/* The ratings block floats up into the hero by exactly --bridge and
   its own background handles the fade. This prevents layout shifts when
   the <select> opens/closes. */
.section{
  max-width:var(--max);
  margin: calc(var(--bridge) * -1) auto 0;    /* controlled overlap */
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.65) 30%,
      #000 60%
    );
  padding: 60px 20px 70px;
  text-align:center;
}

.actions{display:flex; gap:14px; flex-wrap:wrap; margin:8px 0 24px}
.btn{appearance:none; border:0; cursor:pointer; font-weight:700; border-radius:999px; padding:12px 18px; transition:opacity .2s ease, transform .1s ease; background:#1d1d1d; color:#f0f0f0; text-decoration:none; display:inline-block}
.btn:hover{opacity:.9}
.btn.primary{background:var(--brand); color:#1a1a1a}

.panel{
  background:var(--card);
  border:1px solid #1f1f1f; border-radius:var(--radius);
  padding:20px; box-shadow:0 20px 60px rgba(0,0,0,.35);
}

/* fields */
.field{margin:16px 0 34px}
label{display:block; font-weight:700; margin:0 0 8px}
/* Modern form controls (text + selects) */
.form-native input[type="text"],
.form-native select{
  width: 100%;
  padding: 14px 16px;                 /* height ~48–50px */
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
  background: rgba(255,255,255,0.06); /* subtle dark fill */
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;                    /* cleaner rendering */
}

/* Placeholder color */
.form-native input::placeholder{ color:#bcbcbc; }

/* Focus state */
.form-native input[type="text"]:focus,
.form-native select:focus{
  background: rgba(255,255,255,0.1);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230,196,107,0.28);
}

/* Make selects feel like inputs on mobile */
.form-native select{
  -webkit-tap-highlight-color: transparent;
}

/* Optional: tighter spacing under labels for nicer stack */
.form-native .field label{ margin-bottom: 10px; }


/* ratings output */
#profile-data{margin-top:26px}
#profile-data h3{margin:6px 0 8px; font-size:clamp(22px, 2.6vw, 34px)}
.rating-list{list-style:none; padding:0; margin:18px 0 0}
.rating-list li{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid #1f1f1f}
.rating-list li:last-child{border-bottom:none}
.rating-stars{color:#ffc107; font-weight:700}
.label{font-weight:700}
.muted{color:var(--muted)}

/* footer */
footer{
  border-top:none;
  color:#9a9a9a; text-align:center;
  padding:36px 20px 46px;
  background:#000;
}

/* small screens */
@media (max-width:720px){
  .rating-list li{flex-direction:column; align-items:flex-start}
  .menu{gap:10px}
  .menu a{padding:8px 10px}
}

/* ---- Submit page ---- */
.form-section {
  padding:0px 20px;
  background:#000;
  color:#fff;
}

.form-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.form-intro h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.form-intro p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin: 0 auto;
}

.form-intro strong {
  color: var(--brand);
  font-weight: 700;
}


/* shorter hero but keep the same overlap model */
.page-submit .hero.hero-short{min-height: 52vh; display:flex; align-items:center; justify-content:center; text-align:center}
.page-submit .hero-content{margin-top:-16px}

/* submit hero fade: solid black in the bottom --bridge zone for the overlap */
.page-submit .hero.hero-short::after{
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.35) 0%,
      rgba(0,0,0,.28) 30%,
      rgba(0,0,0,.55) 60%,
      rgba(0,0,0,.88) calc(100% - var(--bridge)),
      #000 100%
    );
}

/* bring the form section up into the hero by the same bridge amount */
.page-submit .page-main{
  margin-top: calc(var(--bridge) * -1);
  position:relative; z-index:2; background:#000;
}

/* Smooth bridge over the hero → form joint */
.page-submit .page-main::before{
  content:"";
  position:absolute;
  left:0; right:0;
  /* pull the overlay up into the hero by the same overlap amount */
  top: calc(var(--bridge) * -1);
  /* cover the entire overlap zone (and a touch more) */
  height: calc(var(--bridge) + 24px);
  pointer-events:none;
  z-index:1;
  /* feather from transparent (show hero) to solid black (form area) */
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.75) 70%,
    #000 100%
  );
}


/* Embed */
.form-embed iframe{
  display:block; width:100%; max-width:900px;
  height:2400px; border:0; border-radius:12px; background:#111;
  margin:0 auto;
}
@media (max-width: 900px){ .form-embed iframe{ height:3200px } }

/* Center + strip card look wrapper */
.form-embed{max-width:980px; margin:0 auto; background:transparent; border:0; box-shadow:none; border-radius:0; padding-top:24px}

/* extra big failsafe height for very long forms on wide screens */
@media (min-width: 1200px){ .form-embed iframe{ height:5200px } }

/* stacking safety for overlays */
.section, .panel{position:relative; z-index:2}
.section, .panel{overflow:visible}

/* Likert blocks */
.likert legend{
  font-weight: 700;
  margin-bottom: 8px;
}
.likert .likert-help{
  margin: 6px 0 10px;
  color: #b7b7b7;
  line-height: 1.5;
  font-size: 14px;
}

/* Wrapper: grid with left anchor | bubbles | right anchor */
.likert-scale{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
}

/* Left/Right anchor labels inline */
.likert-scale > .likert-anchor-left,
.likert-scale > .likert-anchor-right{
  font-size: 13px;
  color: #cfcfcf;
  white-space: nowrap;
}
.likert-scale > .likert-anchor-left{ justify-self: start; }
.likert-scale > .likert-anchor-right{ justify-self: end; }

/* Middle block (numbers + bubbles) */
.likert-middle{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

/* 1..5 numbers row */
.likert-numbers{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-size: 14px;
  color: #cfcfcf;
  width: 100%;
}

/* radio “bubbles” row */
.likert-options{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  width: 100%;
}

/* hide native radio, draw custom circle */
.likert-options input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.likert-options label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.likert-options label i{
  display: block;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  border: 2px solid #9a8a4a;            /* brand-adjacent ring */
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .2s ease, background .15s ease, border-color .15s ease;
  background: transparent;
}

/* selected bubble (filled) */
.likert-options input:checked + i{
  background: #e6c46b;
  border-color: #e6c46b;
}

/* focus ring for a11y */
.likert-options input:focus + i{
  box-shadow: 0 0 0 3px rgba(230,196,107,.35);
}

/* Mobile spacing */
@media (max-width: 560px){
  .likert-scale{ padding: 10px 6px; gap: 8px; }
  .likert-options label{ height: 26px; width: 26px; }
  .likert-options label i{ height: 16px; width: 16px; }
}

/* --- Clean up fieldset borders --- */
.form-native fieldset {
  border: 1px solid rgba(255,255,255,0.15); /* super thin, subtle */
  border-radius: 6px;
  padding: 12px 14px 18px;
  margin-bottom: 24px;
}

/* --- Center the submit button --- */
/* Form submit button matches top CTA */
.form-native .btn {
  display: inline-block;
  margin: 20px auto 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);   /* same gold/orange brand color */
  color: #fff;                /* white text like top button */
  font-weight: 800;
  font-size: 16px;
  padding: 12px 24px;         /* same spacing */
  border-radius: 8px;       /* pill shape (fully curved ends) */
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}

/* Hover effect same as nav CTA */
.form-native .btn:hover {
  transform: translateX(-50%) translateY(-1px);
  filter: saturate(110%);
}


/* Hover effect same as nav CTA */
.form-native .btn:hover {
  transform: translateX(-50%) translateY(-1px);
  filter: saturate(110%);
}


/* Hover effect like nav CTA */
.form-native .btn:hover {
  transform: translateX(-50%) translateY(-1px);
  filter: saturate(110%);
}


/* On mobile it stays centered */
@media (max-width: 768px){
  .form-native .btn {
    width: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Homepage dropdowns — full width inside the panel */
.section select,
.panel select {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 8px 0 18px;            /* stack neatly under labels */
  padding: 14px 48px 14px 16px;  /* space + room for arrow */
  font-size: 16px;
  line-height: 1.25;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;

  /* remove native look + custom chevron */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}

/* Focus state (same as submit page) */
.section select:focus,
.panel select:focus {
  background: rgba(255,255,255,0.10);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(230,196,107,0.28);
}

/* Make sure labels are block so text aligns left above the control */
.section label,
.panel label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: left;
}

/* Hide old IE arrow if it ever shows */
.section select::-ms-expand,
.panel select::-ms-expand { display: none; }

label[for="profile-select"] { display:block; text-align:left; }

/* Remove default arrow across browsers */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  padding-right: 1rem; /* spacing so text isn't cut off */
}

/* Also hide IE/Edge arrow */
select::-ms-expand {
  display: none;
}

/* Home page selects: remove custom chevron and stop background anim */
.section select,
.panel select {
  /* keep the native look disabled, but remove our custom arrow */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;   /* kill the SVG chevron */
  padding-right: 16px;                  /* no extra space needed now */
  transition: border-color .2s ease,    /* drop background transition */
              box-shadow .2s ease;
}

/* Force the "Select a Profile" label to align left like the first label */
label[for="profile-select"] {
  display: block !important;
  text-align: left !important;
  margin-bottom: 6px; /* match spacing of first label */
}

/* Labels: match Google Form vibe */
.form-native label,
.field > label {
  font-weight: 400;        /* normal, not bold */
  color: #fff;
}

/* Emphasis inside labels */
.field > label strong { font-weight: 700; }        /* THEIR / YOUR */
.field > label u { text-decoration: underline; }   /* primary / secondary */
.field > label em {
  font-style: italic;
  color: #c9c9c9;          /* softer tone for helper note */
}

/* Red star like GF */
.field > label .required {
  color: #e74c3c;
  margin-left: 4px;
}

/* Helper paragraph style (unchanged, just in case) */
.likert-help { color:#c9c9c9; font-style:italic; margin:.25rem 0 .75rem; }

/* If any old likert layout styles leak in, neutralize them */
.field.likert, .likert-scale { display:block; }

/* Mobile-only wider text */
@media (max-width: 768px) {
  .hero-content,
  .form-intro,
  .form-section .container {
    max-width: 100% !important;  /* allow text to stretch closer to edges */
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-content p,
  .form-intro p {
    font-size: 1rem;   /* keep readable but not oversized */
    line-height: 1.5;
  }
}

/* Mobile-only hero heading adjustments */
@media (max-width: 768px) {
  .hero .title {
    font-size: 2.5rem;        /* make heading text larger */
    line-height: 1.3;       /* tighter line-height for balance */
  }

  .hero .title br {
    margin-bottom: 8px;     /* add space between "Rate the Industry." and "Elevate the Standard." */
    display: block;         /* ensures spacing applies */
    content: ""; 
  }

  .hero .subtitle {
    font-size: 1rem;        /* slightly bigger for readability */
    line-height: 1.6;
  }
}


/* =========================
   Mobile nav: centered logo + twin CTA buttons
   ========================= */
@media (max-width: 768px) {
  /* push the whole bar down a bit so the logo isn't glued to the top */
  .nav {
    padding-top: 30px;            /* << move the logo down */
    height: auto;                 /* let nav grow with content */
  }

  /* stack layout and center things */
  .nav .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .nav .brand {
    order: 1;
    margin: 0 auto;
  }

  .nav .menu {
    order: 2;
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
  }

  /* Make BOTH links look exactly like the desktop CTA */
  /* We mirror the .cta styles here so "Ratings" matches "Submit Rating". */
  .nav .menu a {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    padding: 10px 16px;           /* same feel as desktop CTA */
    border-radius: 12px;          /* pill corners */
    box-shadow:
      0 2px 0 rgba(0,0,0,.25) inset,   /* inner lift */
      0 6px 18px rgba(0,0,0,.25);      /* soft outer */
    transition: transform .15s ease, filter .15s ease;
  }
  .nav .menu a:hover,
  .nav .menu a:focus {
    transform: translateY(-1px);
    filter: saturate(110%);
  }
}

/* Hide hero buttons by default */
.hero-ctas { 
  display: none !important; 
  margin-top: 0;
}

/* Hide by default */
.ratings-mobile {
  display: none;
}

/* ===== Mobile layout ===== */
@media (max-width: 768px) {
  /* Center logo and add top padding so it's not glued to the edge */
  .nav { 
    padding-top: 30px; 
    height: auto; 
  }
  .nav .inner { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
  }
  .nav .brand { 
    margin: 0 auto; 
  }

  /* Hide the original top-right links on mobile */
  .nav .menu { 
    display: none !important; 
  }

  /* Show hero CTAs only on mobile */
  .hero-ctas {
    display: flex !important;
    justify-content: center;
    gap: 12px;
    margin-top: 60px;
  }
  .hero-ctas .cta:first-child {
    display: none !important;
  }
}

.panel {
  margin-top: 60px;  /* push the whole grey box down */
}



  /* Style hero buttons */
  .hero-ctas .cta {
    background: #c64b2c;
    color: #fff;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s ease;
  }

  .hero-ctas .cta:hover,
  .hero-ctas .cta:focus {
    transform: translateY(-1px);
    filter: saturate(110%);
  }



/* Force show only on mobile */
@media screen and (max-width: 768px) {
  .ratings-mobile {
    display: flex !important;   /* override any other display */
    justify-content: center;
    margin: 10px;
    margin-bottom: 25px;
  }
  .ratings-mobile .cta {
    background: #c64b2c;
    color: #fff;
    font-weight: bold;
    padding: 12px 38px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.25);
    transition: background 0.2s ease;
    margin-bottom: 15px;
  }
}

@media (max-width: 768px) {
  .hero::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%);
    /* you can also do `background: none;` if you want zero fade */
  }

  .hero .subtitle {
    margin-bottom: 10px; /* ensures text clears the fade */
  }
  .form-native {
    margin-top: 70px;  /* adjust until it looks right */
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-bottom: 70px; /* ensures text clears the fade */
    position: relative;
    z-index: 2; /* keeps text above fade just in case */
  }
}


@media (max-width: 768px) {
  /* make sure hero sits above the page-main overlay */
  .page-submit .hero.hero-short {
    position: relative;
    z-index: 2;
  }
  .page-submit .page-main::before {
    z-index: 1;           /* below hero now */
    top: -20px;           /* smaller overlap so it doesn’t hit the subtitle */
    height: 48px;         /* reduce height of the feather */
  }
}

/* --- MOBILE-ONLY FIXES --- */
@media (max-width: 768px) {
  /* 1) Keep the original fade everywhere EXCEPT submit page */
  body:not(.page-submit) .hero::after {
    background:
      linear-gradient(to bottom,
        rgba(0,0,0,.35) 0%,
        rgba(0,0,0,.25) 18%,
        rgba(0,0,0,.15) 38%,
        rgba(0,0,0,.45) 62%,
        rgba(0,0,0,.88) calc(100% - var(--bridge)),
        #000 100%);
  }

  /* 2) Submit page: ensure text stays above any fades/overlaps */
  .page-submit .hero { position: relative; z-index: 2; }
  .page-submit .hero-content { position: relative; z-index: 3; }

  /* Submit page: either shrink/soften the hero fade... */
  /* Submit page — faint mobile fade that won't eat the subtitle */
@media (max-width: 768px) {
  .page-submit .hero::after {
    z-index: 1;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 22%,
      rgba(0,0,0,.28) 58%,
      rgba(0,0,0,.55) 86%,
      #000 100%
    );
  }
}


  /* ...and/or remove the page-main overlap that was sitting on top */
  .page-submit .page-main::before {
    content: none !important;   /* comment this out if you prefer a small overlap */
  }
}

@media (max-width: 768px) {
  .section {
    padding-top: 0px !important;
  }
}

