/* =========================================================
   CouncilMetrics — Community Opinion
   ========================================================= */

.opinion-page{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:34px 38px 70px;
  box-sizing:border-box;
  color:#17343c;
}

.opinion-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  min-height:245px;
  padding:46px 52px;
  border:1px solid #dce7e9;
  border-radius:22px;
  background:
    radial-gradient(circle at 90% 15%,rgba(10,165,165,.09),transparent 32%),
    #fff;
  box-shadow:0 12px 34px rgba(20,55,65,.055);
}

.opinion-hero-copy{
  max-width:760px;
}

.opinion-kicker{
  display:block;
  margin-bottom:10px;
  color:#078a89;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
}

.opinion-hero h1{
  margin:0;
  color:#183941;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-.035em;
}

.opinion-hero-copy > p{
  max-width:720px;
  margin:17px 0 0;
  color:#647a80;
  font-size:16px;
  line-height:1.7;
}

.opinion-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin-top:27px;
  color:#587078;
  font-size:13px;
  font-weight:600;
}

.opinion-hero-meta span{
  display:flex;
  align-items:center;
  gap:8px;
}

.opinion-hero-meta i{
  color:#079a99;
}

.opinion-hero-mark{
  flex:0 0 130px;
  width:130px;
  height:130px;
  display:grid;
  place-items:center;
  border:1px solid rgba(8,151,150,.14);
  border-radius:50%;
  background:rgba(8,151,150,.07);
  color:#078f8e;
  font-size:47px;
}

.opinion-preview{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:18px;
  padding:15px 19px;
  border:1px solid #ecdcae;
  border-radius:13px;
  background:#fffaf0;
  color:#735b20;
}

.opinion-preview > i{
  font-size:18px;
}

.opinion-preview div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.opinion-preview strong{
  font-size:13px;
}

.opinion-preview span{
  color:#8a7540;
  font-size:12px;
}


/* =========================================================
   Sections
   ========================================================= */

.opinion-intro,
.opinion-question,
.opinion-consent,
.opinion-submit,
.opinion-methodology{
  margin-top:22px;
  border:1px solid #dde7e9;
  border-radius:18px;
  background:#fff;
}

.opinion-intro,
.opinion-question{
  padding:30px 34px;
}

.opinion-intro > div:first-child,
.opinion-question-heading{
  display:flex;
  align-items:flex-start;
  gap:18px;
}

.opinion-section-number{
  flex:0 0 38px;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:11px;
  background:#edf8f7;
  color:#078a89;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
}

.opinion-intro h2,
.opinion-question h2,
.opinion-consent h2{
  margin:1px 0 5px;
  color:#1a3941;
  font-size:20px;
  line-height:1.35;
  letter-spacing:-.015em;
}

.opinion-intro p,
.opinion-question-heading p,
.opinion-consent p{
  margin:0;
  color:#74868b;
  font-size:13px;
  line-height:1.6;
}


/* =========================================================
   Council selector
   ========================================================= */

.opinion-field{
  display:block;
  max-width:620px;
  margin:25px 0 0 56px;
}

.opinion-field > span{
  display:block;
  margin-bottom:7px;
  color:#526970;
  font-size:12px;
  font-weight:700;
}

.opinion-field select{
  width:100%;
  height:48px;
  padding:0 15px;
  border:1px solid #d3e0e2;
  border-radius:11px;
  outline:none;
  background:#f9fbfb;
  color:#344f56;
  font:inherit;
  font-size:13px;
}


/* =========================================================
   Answers
   ========================================================= */

.opinion-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:25px 0 0 56px;
}

.opinion-option{
  position:relative;
  display:flex;
  align-items:center;
  min-height:51px;
  padding:11px 14px;
  border:1px solid #dce6e8;
  border-radius:11px;
  background:#fbfcfc;
  cursor:default;
  transition:border-color .18s ease,background .18s ease;
}

.opinion-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.opinion-option-control{
  position:relative;
  flex:0 0 18px;
  width:18px;
  height:18px;
  margin-right:10px;
  border:1.5px solid #b8c9cd;
  border-radius:50%;
  background:#fff;
}

.opinion-options-multiple .opinion-option-control{
  border-radius:5px;
}

.opinion-option-label{
  color:#465f66;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
}

.opinion-choice-limit{
  margin:10px 0 0 56px;
  color:#8a9a9e;
  font-size:11px;
  font-weight:600;
}


/* =========================================================
   Consent
   ========================================================= */

.opinion-consent{
  display:flex;
  gap:22px;
  padding:30px 34px;
  background:#f9fcfc;
}

.opinion-consent-icon{
  flex:0 0 45px;
  width:45px;
  height:45px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#e8f7f6;
  color:#078f8e;
  font-size:18px;
}

.opinion-consent-copy{
  max-width:900px;
}

.opinion-consent-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-top:19px;
  padding:16px 18px;
  border:1px solid #d8e6e7;
  border-radius:11px;
  background:#fff;
}

.opinion-consent-check input{
  flex:0 0 auto;
  width:17px;
  height:17px;
  margin-top:2px;
  accent-color:#078f8e;
}

.opinion-consent-check span{
  color:#536a70;
  font-size:12px;
  line-height:1.6;
}

.opinion-consent small{
  display:block;
  margin-top:9px;
  color:#91a0a4;
  font-size:10px;
}


/* =========================================================
   Submit
   ========================================================= */

.opinion-submit{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  padding:23px 27px;
}

.opinion-submit > div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.opinion-submit strong{
  color:#304d54;
  font-size:13px;
}

.opinion-submit span{
  color:#819297;
  font-size:12px;
}

.opinion-submit button{
  display:flex;
  align-items:center;
  gap:10px;
  height:44px;
  padding:0 19px;
  border:0;
  border-radius:10px;
  background:#d7e2e3;
  color:#839397;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:not-allowed;
}


/* =========================================================
   Methodology note
   ========================================================= */

.opinion-methodology{
  display:flex;
  gap:15px;
  padding:19px 22px;
  border-style:dashed;
  background:#fafcfc;
  color:#687e84;
}

.opinion-methodology > i{
  margin-top:2px;
  color:#789196;
}

.opinion-methodology strong{
  display:block;
  margin-bottom:3px;
  color:#526970;
  font-size:12px;
}

.opinion-methodology p{
  max-width:900px;
  margin:0;
  font-size:11px;
  line-height:1.65;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width:1000px){
  .opinion-options{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .opinion-hero-mark{
    flex-basis:105px;
    width:105px;
    height:105px;
    font-size:38px;
  }
}

@media (max-width:700px){
  .opinion-page{
    padding:20px 15px 45px;
  }

  .opinion-hero{
    min-height:0;
    padding:30px 25px;
  }

  .opinion-hero h1{
    font-size:32px;
  }

  .opinion-hero-mark{
    display:none;
  }

  .opinion-hero-meta{
    gap:12px 18px;
  }

  .opinion-intro,
  .opinion-question,
  .opinion-consent{
    padding:23px 20px;
  }

  .opinion-field,
  .opinion-options,
  .opinion-choice-limit{
    margin-left:0;
  }

  .opinion-options{
    grid-template-columns:1fr;
  }

  .opinion-consent{
    flex-direction:column;
  }

  .opinion-submit{
    align-items:flex-start;
    flex-direction:column;
  }

  .opinion-submit button{
    width:100%;
    justify-content:center;
  }
}

/* =========================================================
   Live survey controls
   ========================================================= */

.opinion-option:has(input:not(:disabled)){
  cursor:pointer;
}

.opinion-option:has(input:not(:disabled)):hover{
  border-color:#9bcfd0;
  background:#f6fbfb;
}

.opinion-option:has(input:focus-visible){
  outline:2px solid #159b9c;
  outline-offset:2px;
}

/* Selected answer card */
.opinion-option:has(input:checked){
  border-color:#159b9c;
  background:#f1fafa;
}

/* Radio selected state */
.opinion-option input[type="radio"]:checked
  + .opinion-option-control{
  border-color:#159b9c;
  box-shadow:inset 0 0 0 4px #fff;
  background:#159b9c;
}

/* Checkbox selected state */
.opinion-options-multiple
.opinion-option input[type="checkbox"]:checked
  + .opinion-option-control{
  border-color:#159b9c;
  background:#159b9c;
}

/* Checkbox tick */
.opinion-options-multiple
.opinion-option input[type="checkbox"]:checked
  + .opinion-option-control::after{
  content:"";
  position:absolute;
  left:5px;
  top:2px;
  width:5px;
  height:9px;
  border:solid #fff;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* Stronger label when selected */
.opinion-option:has(input:checked)
.opinion-option-label{
  color:#173f46;
}

/* Keep preview controls visually non-interactive */
.opinion-option:has(input:disabled){
  cursor:default;
}


/* =========================================================
   Community Opinion — response confirmation
   ========================================================= */

.opinion-success{
    position:relative;
    display:grid;
    grid-template-columns:64px minmax(0,1fr);
    gap:24px;
    margin:22px 0 26px;
    padding:32px 34px;
    background:#fff;
    border:1px solid #dbe7e9;
    border-radius:18px;
    box-shadow:
        0 12px 35px rgba(17,55,67,.055),
        0 2px 6px rgba(17,55,67,.025);
    overflow:hidden;
}

/* Subtle confirmation accent */
.opinion-success::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:4px;
    height:100%;
    background:#159b9c;
}

.opinion-success-icon{
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    border-radius:16px;
    background:#eaf8f8;
    color:#159b9c;
    font-size:25px;
}

.opinion-success .opinion-kicker{
    display:block;
    margin:2px 0 8px;
    color:#159b9c;
    font-size:11px;
    font-weight:800;
    letter-spacing:.12em;
}

.opinion-success h2{
    margin:0 0 10px;
    color:#173f46;
    font-size:27px;
    line-height:1.2;
    letter-spacing:-.02em;
}

.opinion-success > div:last-child > p{
    margin:0;
    max-width:760px;
    color:#536d74;
    font-size:14px;
    line-height:1.7;
}


/* Private response reference */
.opinion-response-reference{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin-top:24px;
    padding:17px 19px;
    background:#f5f9fa;
    border:1px solid #dce8ea;
    border-radius:12px;
}

.opinion-response-reference span{
    color:#657d83;
    font-size:12px;
    font-weight:700;
}

.opinion-response-reference strong{
    color:#173f46;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size:13px;
    font-weight:700;
    letter-spacing:.015em;
    overflow-wrap:anywhere;
}


/* Withdrawal guidance */
.opinion-success .opinion-response-reference-note{
    position:relative;
    margin-top:13px !important;
    padding-left:22px;
    color:#71878c;
    font-size:12px;
    line-height:1.55;
}

.opinion-response-reference-note::before{
    content:"\\f023";
    position:absolute;
    left:0;
    top:1px;
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    color:#159b9c;
}


/* Responsive confirmation */
@media (max-width:700px){

    .opinion-success{
        grid-template-columns:1fr;
        padding:25px 22px;
    }

    .opinion-success-icon{
        width:52px;
        height:52px;
    }

    .opinion-success h2{
        font-size:23px;
    }

    .opinion-response-reference{
        align-items:flex-start;
        flex-direction:column;
        gap:7px;
    }

    .opinion-response-reference strong{
        font-size:12px;
    }
}


/* =========================================================
   Community Opinion — withdrawal access
   ========================================================= */

.opinion-withdraw-access{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:9px;
    margin:-8px 2px 20px;
    color:#71878c;
    font-size:12px;
}

.opinion-withdraw-access a{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#357f82;
    font-weight:700;
    text-decoration:none;
    transition:
        color .18s ease,
        gap .18s ease;
}

.opinion-withdraw-access a:hover{
    color:#159b9c;
    gap:10px;
}

.opinion-withdraw-access a i{
    font-size:10px;
}

.opinion-success-actions{
    display:flex;
    align-items:center;
    margin-top:19px;
    padding-top:17px;
    border-top:1px solid #e5edef;
}

.opinion-success-actions a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#536d74;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    transition:color .18s ease;
}

.opinion-success-actions a:hover{
    color:#159b9c;
}

.opinion-success-actions a i{
    color:#159b9c;
}

@media (max-width:700px){
    .opinion-withdraw-access{
        align-items:flex-start;
        flex-direction:column;
        margin-top:-5px;
    }
}


/* =========================================================
   Community Opinion — withdrawal page actions
   ========================================================= */

.opinion-page form[method="get"] .opinion-submit button,
.opinion-page form[method="post"] .opinion-submit button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-height:42px;
    padding:0 20px;
    border:1px solid #159b9c;
    border-radius:9px;
    background:#159b9c;
    color:#fff;
    font:inherit;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    opacity:1;
    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.opinion-page form[method="get"] .opinion-submit button:hover,
.opinion-page form[method="post"] .opinion-submit button:hover{
    background:#118889;
    border-color:#118889;
    box-shadow:0 5px 14px rgba(21,155,156,.16);
}

.opinion-page form[method="get"] .opinion-submit button:active,
.opinion-page form[method="post"] .opinion-submit button:active{
    transform:translateY(1px);
}

.opinion-page form[method="get"] .opinion-submit button:focus-visible,
.opinion-page form[method="post"] .opinion-submit button:focus-visible{
    outline:3px solid rgba(21,155,156,.22);
    outline-offset:2px;
}


/* =========================================================
   Community Opinion — response reference field
   ========================================================= */

.opinion-field{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-top:20px;
}

.opinion-field > span{
    color:#3f5e65;
    font-size:12px;
    font-weight:700;
}

.opinion-field input[type="text"]{
    width:100%;
    max-width:520px;
    height:48px;
    padding:0 15px;
    box-sizing:border-box;
    border:1px solid #d6e2e4;
    border-radius:10px;
    background:#f8fbfb;
    color:#173f46;
    outline:none;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size:14px;
    letter-spacing:.015em;
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.opinion-field input[type="text"]::placeholder{
    color:#9babad;
}

.opinion-field input[type="text"]:hover{
    border-color:#b8d2d5;
    background:#fff;
}

.opinion-field input[type="text"]:focus{
    border-color:#159b9c;
    background:#fff;
    box-shadow:0 0 0 3px rgba(21,155,156,.10);
}

@media (max-width:700px){
    .opinion-field input[type="text"]{
        max-width:100%;
        font-size:12px;
    }
}


/* =========================================================
   Community Opinion — results
   ========================================================= */

.opinion-results-page{
    padding-bottom:40px;
}

/* Results unavailable / collecting state */

.opinion-results-unpublished{
    position:relative;
    display:grid;
    grid-template-columns:68px minmax(0,1fr);
    gap:24px;
    margin:22px 0 26px;
    padding:34px;
    background:#fff;
    border:1px solid #dbe7e9;
    border-radius:18px;
    box-shadow:0 12px 35px rgba(17,55,67,.05);
    overflow:hidden;
}

.opinion-results-unpublished::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    background:#159b9c;
}

.opinion-results-unpublished-icon{
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    background:#eaf8f8;
    color:#159b9c;
    font-size:24px;
}

.opinion-results-unpublished h2{
    margin:4px 0 10px;
    color:#173f46;
    font-size:25px;
    line-height:1.25;
    letter-spacing:-.02em;
}

.opinion-results-unpublished p{
    max-width:720px;
    margin:0 0 20px;
    color:#61777d;
    font-size:14px;
    line-height:1.7;
}

.opinion-results-unpublished a{
    display:inline-flex;
    align-items:center;
    gap:9px;
    color:#159b9c;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.opinion-results-unpublished a:hover{
    text-decoration:underline;
}

/* Results toolbar */

.opinion-results-toolbar{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:28px;
    margin:22px 0;
    padding:24px 26px;
    background:#fff;
    border:1px solid #dce7e9;
    border-radius:14px;
}

.opinion-results-toolbar h2{
    margin:5px 0 0;
    color:#173f46;
    font-size:21px;
}

.opinion-results-toolbar form{
    min-width:290px;
}

.opinion-results-toolbar label{
    display:block;
    margin-bottom:7px;
    color:#657d83;
    font-size:11px;
    font-weight:700;
}

.opinion-results-toolbar select{
    width:100%;
    height:43px;
    padding:0 38px 0 13px;
    border:1px solid #d5e2e4;
    border-radius:9px;
    background:#f8fbfb;
    color:#294f57;
    font-family:inherit;
    font-size:13px;
    outline:none;
}

.opinion-results-toolbar select:focus{
    border-color:#159b9c;
    box-shadow:0 0 0 3px rgba(21,155,156,.1);
}

/* Minimum-response state */

.opinion-results-threshold{
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    gap:20px;
    margin:22px 0;
    padding:27px;
    background:#f8fbfb;
    border:1px solid #dbe7e9;
    border-radius:14px;
}

.opinion-results-threshold > div:first-child{
    width:50px;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:#e8f5f5;
    color:#159b9c;
    font-size:20px;
}

.opinion-results-threshold h2{
    margin:4px 0 8px;
    color:#173f46;
    font-size:21px;
}

.opinion-results-threshold p{
    margin:0;
    max-width:760px;
    color:#61777d;
    font-size:13px;
    line-height:1.7;
}

/* Empty state */

.opinion-results-empty{
    padding:55px 30px;
    text-align:center;
    background:#fff;
    border:1px solid #dce7e9;
    border-radius:14px;
}

.opinion-results-empty > i{
    margin-bottom:15px;
    color:#9ab0b5;
    font-size:30px;
}

.opinion-results-empty h2{
    margin:0 0 7px;
    color:#173f46;
}

.opinion-results-empty p{
    margin:0;
    color:#71878c;
}

/* Result cards */

.opinion-results-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
    margin:22px 0 26px;
}

.opinion-result-card{
    padding:25px;
    background:#fff;
    border:1px solid #dce7e9;
    border-radius:15px;
    box-shadow:0 5px 18px rgba(17,55,67,.025);
}

.opinion-result-card-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
    margin-bottom:20px;
}

.opinion-result-card-header h2{
    margin:5px 0 0;
    color:#173f46;
    font-size:17px;
    line-height:1.4;
}

.opinion-result-n{
    flex:0 0 auto;
    padding:6px 9px;
    border-radius:7px;
    background:#f0f6f7;
    color:#61777d;
    font-size:11px;
    font-weight:700;
}

.opinion-result-note{
    margin:-7px 0 20px;
    padding:10px 12px;
    border-radius:8px;
    background:#f8fbfb;
    color:#71878c;
    font-size:11px;
    line-height:1.5;
}

.opinion-result-bars{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.opinion-result-label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:6px;
    color:#46656c;
    font-size:12px;
}

.opinion-result-label strong{
    color:#173f46;
    font-size:12px;
}

.opinion-result-track{
    position:relative;
    height:7px;
    overflow:hidden;
    border-radius:999px;
    background:#eaf0f1;
}

.opinion-result-track span{
    display:block;
    height:100%;
    min-width:0;
    border-radius:inherit;
    background:#159b9c;
}

.opinion-result-count{
    margin-top:5px;
    color:#8a9da1;
    font-size:10px;
}

/* Methodology spacing on results page */

.opinion-results-page .opinion-methodology{
    margin-top:24px;
}

/* Responsive */

@media (max-width:900px){
    .opinion-results-grid{
        grid-template-columns:1fr;
    }

    .opinion-results-toolbar{
        align-items:stretch;
        flex-direction:column;
    }

    .opinion-results-toolbar form{
        min-width:0;
        width:100%;
    }
}

@media (max-width:700px){
    .opinion-results-unpublished{
        grid-template-columns:1fr;
        padding:25px 22px;
    }

    .opinion-results-unpublished-icon{
        width:52px;
        height:52px;
    }

    .opinion-results-unpublished h2{
        font-size:21px;
    }

    .opinion-results-threshold{
        grid-template-columns:1fr;
        padding:22px;
    }

    .opinion-result-card{
        padding:20px;
    }

    .opinion-result-card-header{
        flex-direction:column;
        gap:10px;
    }
}


/* =========================================================
   Community Opinion — survey utility actions
   ========================================================= */

.opinion-community-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    margin:-8px 2px 20px;
}

.opinion-community-actions .opinion-withdraw-access{
    margin:0;
}

.opinion-results-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:#159b9c;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    transition:
        color .18s ease,
        gap .18s ease;
}

.opinion-results-link:hover{
    color:#118889;
    gap:11px;
}

.opinion-results-link i{
    font-size:11px;
}

@media (max-width:700px){
    .opinion-community-actions{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
        margin-top:-5px;
    }

    .opinion-community-actions .opinion-withdraw-access{
        align-items:flex-start;
        flex-direction:column;
        gap:4px;
    }
}

