/* =========================================================
   FORMULAR - DESIGN RESPONSIVE
   Conceput pentru mobil, dar funcționează și pe desktop.
   ========================================================= */

:root {
  --blue: #0757d5;
  --blue-dark: #0648b4;
  --blue-light: #eef5ff;
  --blue-civicvox: #112B4E;
  --text: #182338;
  --muted: #687386;
  --border: #d9dee8;
  --border-light: #e8ebf1;
  --danger: #e53935;
  --white: #ffffff;
  --vox: #0757d5;
  --radius: 10px;
  --shadow: 0 3px 12px rgba(18, 35, 60, .07);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background: var(--blue-light);
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

.form-wrap {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 24px 32px 35px;
}

.form-header {
  text-align: center;
  padding-bottom: 20px;
}

.form-header h1 {
  margin: 0;
  color: var(--white);
  font-size: 70px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .2px;
}

.form-header h1 span {
  color: var(--vox);
}

/* Header - Logo și nume Primărie */
.civicvox-header-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.civicvox-header-logo {
  display: block;
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

/* Header - Nume Primărie */
#civicvox-municipality-name {
  color: var(--text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.form-header .civicvox-header-link:hover,
.form-header .civicvox-header-link:focus {
  color: inherit;
  text-decoration: none;
}

/* ---------------- TIP SOLICITARE ---------------- */

/* Ascunde butoanele radio din carduri */
.request-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Elimină indicatorul radio personalizat */
.request-card .radio-indicator {
    display: none !important;
}

.request-type h2 {
  margin: 0 0 5px;
  font-size: 25px;
  line-height: 1.25;
}

.section-intro {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 17px;
  text-align: center;
}

.request-options {
  display: grid;
  gap: 12px;
}

.request-card {
  background: #fff;
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr 34px;
  align-items: center;
  min-height: 125px;
  padding: 20px 20px;
  border: 2px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.request-card-label {
  cursor: pointer;
}

.request-card:hover {
  border-color: #b7c8e7;
}

.request-card.is-selected {
  border-color: #1765e4;
  background: var(--white);
  box-shadow: 0 2px 7px rgba(7, 87, 213, .06);
}

.request-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.request-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eef8;
  font-size: 32px;
}

.is-selected .request-icon {
  background: #dce9ff;
}

.request-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 15px;
}

.request-copy strong {
  color: var(--text);
  font-size: 21px;
}

.is-selected .request-copy strong {
  color: var(--blue);
}

.request-copy span {
  color: #28364c;
  font-size: 17px;
  max-width: 650px;
}

.radio-indicator {
  width: 25px;
  height: 25px;
  border: 3px solid #c5cad4;
  border-radius: 50%;
  justify-self: end;
}

.is-selected .radio-indicator {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--blue);
}

/* ---------------- SECTIUNI ---------------- */

.form-section {
  margin-top: 32px;
  color: var(--text);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
}

.section-icon {
  font-size: 23px;
  min-width: 25px;
}

div#contactFieldsWrap {
  color: var(--text);
}

.field {
  margin-bottom: 19px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.field label[for="tbNume"], .field label[for="tbTelefon"], .field label[for="tbEmail"] {
  color: var(--text) !important;
}

.field label em, .consent em, strong em {
  color: var(--danger);
  font-style: normal;
}

.field-help {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  border: 1px solid #cfd5df;
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
  height: 53px;
  padding: 0 16px;
}

textarea {
  min-height: 105px;
  padding: 13px 16px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7a8494;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 87, 213, .10);
}

select {
  appearance: auto;
  cursor: pointer;
}

.form-section.contact {
  border-radius: 11px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 4px 0 12px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
}

.civicvox-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--blue);
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}

.contact-info-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 20px 0 10px;
}

.contact-info-title strong {
  font-size: 16px;
}

.contact-info-title span {
  font-size: 14px;
}

.info-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1px solid #7e8999;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.counter {
  text-align: right;
  margin-top: 3px;
  color: #7a8494;
  font-size: 13px;
}

/* Sectiune Alege problema */
.field label[for="problemType"], .field label[for="tbComments"] {
  color: var(--text);
}

/* Sectiune Harta */
.location-block {
    border-radius: 11px;
}

/* Sectiunea Adauga poze */
.media-block {
  border-radius: 11px;
}

/* Sectiunea Propunere */
.form-section.message-section {
  padding: 20px;
  border-radius: 11px;
}

.message-section > label {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.message-section > label em {
  color: var(--danger);
  font-style: normal;
}

div#proposalContactChoice label {
    color: var(--text);
}


/* Sectiunea - Evaluarea ta*/
.form-section.feedback-section {
  padding: 20px;
  border-radius: 11px;
}

.field label[for="feedbackService"], .field label[for="feedbackStar"], .field label[for="feedbackComment"] {
  color: var(--text);
}

/* =========================================================
   DROPDOWN CUSTOM - ALEGERE PROBLEMĂ
   ========================================================= */

.problem-section {
  position: relative;
  z-index: 20;
  border-radius: 11px;
}

.optional-section {
  position: relative;
  z-index: 1;
}
.problem-select {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.problem-select > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.problem-select-trigger {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid #1f64d8;
  border-radius: 8px;
  background: #fff;
  color: #28364d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.problem-select-trigger:hover {
  border-color: #1458c7;
}

.problem-select.open .problem-select-trigger {
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 0 2px rgba(31,100,216,.10);
}

.problem-chevron {
  font-size: 22px;
  line-height: 1;
  color: #27364d;
  transform: translateY(-2px);
  transition: transform .15s ease;
}

.problem-select.open .problem-chevron {
  transform: rotate(180deg) translateY(2px);
}

.problem-options {
  display: none;
  position: absolute;
  z-index: 1001;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(24, 42, 70, .12);
  overflow: hidden;
}

.problem-select.open .problem-options {
  display: block;
}

.problem-option {
  width: 100%;
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid #edf0f5;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: #243149;
}

.problem-option:first-child {
  border-top: 0;
}

.problem-option:hover,
.problem-option:focus-visible {
  background: #f5f8fd;
  outline: none;
}

.problem-option.selected {
  background: #f1f6ff;
}

.problem-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

.problem-icon-road {
  background: #e7eefb;
  color: #536a91;
}

.problem-icon-trash {
  background: #e5f4f0;
  color: #378779;
}

.problem-icon-light {
  background: #fff1d7;
  color: #b78022;
}

.problem-icon-green {
  background: #e2f4e8;
  color: #4b9b5e;
}

.problem-icon-water {
  background: #e3edff;
  color: #3174d5;
}

.problem-icon-parking {
  background: #eeeafd;
  color: #6f5bb3;
}

.problem-icon-traffic {
  background: #ffe8e3;
  color: #d3654e;
}

.problem-icon-other {
  background: #edf0f6;
  color: #68758a;
  letter-spacing: 1px;
  font-size: 10px;
}

.problem-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.problem-option-copy strong {
  font-size: 13px;
  line-height: 1.15;
  color: #27344a;
}

.problem-option-copy small {
  font-size: 11px;
  line-height: 1.2;
  color: #69758a;
}

@media (max-width: 700px) {
  .problem-select-trigger {
    min-height: 52px;
  }

  .problem-option {
    min-height: 56px;
    padding: 9px 10px;
  }

  .problem-option-copy strong {
    font-size: 13px;
  }

  .problem-option-copy small {
    font-size: 10.5px;
  }
}

/* ---------------- POZE + HARTA ---------------- */

.media-location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.media-block h3,
.location-block h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
}

.media-block h3 span,
.location-block h3 span {
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}

.required-location {
  color: var(--danger) !important;
  font-weight: 700 !important;
}

.location-block p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
}

.upload-box {
  background: var(--white);
  min-height: 150px;
  border: 2px dashed #bdc7d6;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 18px;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 9px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 25px;
}

.upload-box strong {
  font-size: 15px;
}

.upload-box small {
  margin-top: 3px;
  color: var(--muted);
}

.map-placeholder {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid #d2d8e2;
  border-radius: 9px;
  background:
    linear-gradient(35deg, transparent 44%, #d8e4d2 45%, #d8e4d2 47%, transparent 48%),
    linear-gradient(145deg, transparent 35%, #e5dccd 36%, #e5dccd 38%, transparent 39%),
    repeating-linear-gradient(90deg, #f0f1ed 0 38px, #e5e7e1 39px 41px),
    #edf0eb;
}

.map-placeholder::before,
.map-placeholder::after {
  content: "";
  position: absolute;
  background: #d6d9d5;
  opacity: .8;
}

.map-placeholder::before {
  width: 130%;
  height: 7px;
  left: -15%;
  top: 45%;
  transform: rotate(-12deg);
}

.map-placeholder::after {
  width: 7px;
  height: 130%;
  left: 58%;
  top: -15%;
  transform: rotate(28deg);
}

.map-controls {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
}

.map-controls button {
  width: 35px;
  height: 35px;
  border: 1px solid #ccd2da;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

.map-controls button:first-child {
  border-radius: 5px 5px 0 0;
}

.map-controls button:last-child {
  border-radius: 0 0 5px 5px;
  border-top: 0;
}

.address-field {
  margin-top: 9px;
  height: 43px !important;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ---------------- GDPR / SUBMIT ---------------- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
}

.checkbox-row input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.checkbox-row a {
  display: inline;
  margin-top: 4px;
  color: var(--text);
  font-weight: 600;
}

.civicvox-alert-channel-options {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Ascunde complet mesajul Web Push când este gol, pentru ca spațierea dintre metode să fie uniformă. */
#civicvoxWebPushStatus:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.civicvox-webpush-activate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.civicvox-webpush-activate-button:hover {
  background: var(--blue-dark);
}

.civicvox-webpush-activate-button:disabled {
  opacity: 1;
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  cursor: default;
}

p.civicvox-alerts-privacy-text {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

p.civicvox-alerts-privacy-text a {
  color: var(--text);
  font-weight: 800;
}

.submit-wrap {
  margin-top: 25px;
}

.submit-wrap input {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.submit-wrap input:hover {
  background: var(--blue-dark);
}

.submit-wrap input:active {
  transform: translateY(1px);
}

.security-note {
  margin-top: 10px;
  text-align: center;
  color: var(--text);
  font-size: 14px;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-light);
}

.footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

/* ---------------- HONEYPOT ---------------- */

.hp-wrap {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}


/* --- Ascundere optiuni radio neselectate --- */
.request-card[hidden] {
  display: none !important;
}

/*--- Adaugare buton pentru intoarcere la optiunile neselectate ---*/
.change-request-wrap {
  margin-top: 12px;
  text-align: center;
}

.change-request-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  color: #0B63CE;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  border-radius: 5px;
  font-weight: 700;
}

.change-request-btn:hover {
  color: #084a9c;
}


/* --- Feedback --- */
.feedback-rating{display:flex;gap:8px;align-items:center;margin-top:8px}
.feedback-rating label{position:relative;cursor:pointer}
.feedback-rating input{position:absolute;opacity:0}
.feedback-rating label span[aria-hidden="true"]{font-size:36px;line-height:1;color:#ffffff;transition:color .15s ease;text-shadow:0 1px 5px rgba(0,0,0)}
.feedback-rating label:hover span[aria-hidden="true"]{color:#f5b301}
.feedback-rating label.active span[aria-hidden="true"]{color:#f5b301}
.feedback-rating.is-disabled{opacity:.5;pointer-events:none}
#feedbackComment:disabled{background:#f5f5f5;cursor:not-allowed;opacity:.7}
.feedback-rating-text{display:block;margin-top:8px;font-size:14px;color:#666}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.request-card[hidden]{display:none !important}
.change-request-wrap{margin-top:12px;text-align:center}
.alerts-section .section-intro{margin-bottom:20px}
.audience-section .section-intro{margin-bottom:20px}
.audience-section select{width:100%;min-height:52px;padding:12px 16px;border:1px solid #d8d8d8;border-radius:10px;background:#fff;font:inherit;color:#333;box-sizing:border-box}
.audience-section select:focus{outline:none;border-color:#0B63CE;box-shadow:0 0 0 3px rgba(11,99,206,.10)}
.feedback-select{position:relative;width:100%;}
.feedback-select select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;}
.feedback-select-trigger{width:100%;min-height:52px;padding:12px 16px;border:1px solid #d8d8d8;border-radius:10px;background:#fff;display:flex;align-items:center;gap:12px;text-align:left;font:inherit;color:#333;cursor:pointer;box-sizing:border-box;}
.feedback-select-trigger:hover{border-color:#b8b8b8;}
.feedback-select.open .feedback-select-trigger{border-color:#999;box-shadow:0 0 0 3px rgba(0,0,0,.05);}
.feedback-selected-icon{font-size:22px;line-height:1;width:28px;text-align:center;flex:0 0 28px;}
.feedback-selected-text{flex:1;}
.feedback-chevron{font-size:22px;line-height:1;color:#666;transform:translateY(-2px);}
.feedback-options{display:none;position:absolute;z-index:1000;left:0;right:0;top:calc(100% + 6px);background:#fff;border:1px solid #ddd;border-radius:10px;box-shadow:0 10px 28px rgba(0,0,0,.12);padding:6px;max-height:300px;overflow-y:auto;}
.feedback-select.open .feedback-options{display:block;}
.feedback-option{width:100%;border:0;background:transparent;border-radius:8px;padding:10px 12px;display:flex;align-items:center;gap:12px;text-align:left;font:inherit;color:#333;cursor:pointer;}
.feedback-option-group{padding:9px 12px 6px;margin-top:4px;border-top:1px solid #eee;font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.03em;}
.feedback-option-group:first-child{border-top:0;margin-top:0;}
.feedback-option:hover,.feedback-option.selected{background:#f3f5f7;}
.feedback-option-icon{font-size:22px;line-height:1;width:30px;text-align:center;flex:0 0 30px;}


/* --- Form Submit --- */
.form-submit-message{display:none;margin-top:14px;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.45}
.form-submit-message.success{display:block;background:#edf8f0;border:1px solid #b9dfc2;color:#176b2b}
.form-submit-message.error{display:block;background:#fff1f1;border:1px solid #e2b8b8;color:#9b2222}


/* --- Erori --- */
.required-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}
.problem-select-trigger.required-field-error,
.feedback-select-trigger.required-field-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}
.validation-error.required-field-error {
  color: #dc2626 !important;
  display: block !important;
}

.validation-error {
  color: #dc2626;
}


/* --- Pagina Succes --- */
.success-page {
  display: none;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 50px 24px;
  color: var(--white);
}

.success-page.is-visible {
  display: flex;
}

.success-page-inner {
  width: 100%;
  max-width: 620px;
}

.success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9f7ef;
  color: #198754;
  font-size: 42px;
  font-weight: 700;
}

.success-page h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

.success-page p {
  margin: 0 auto 10px;
  font-size: 17px;
  line-height: 1.6;
}

.success-request-number {
  font-weight: 700;
  margin-top: 14px !important;
}

.success-new-button {
  margin-top: 26px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}


/* ---------------- MOBILE ---------------- */

@media (max-width: 700px) {
  .form-wrap {
    padding: 18px 16px 28px;
  }

  .form-header h1 {
    font-size: 27px;
  }

  .civicvox-header-logo {
    width: 150px;
  }

  .request-type h2 {
    font-size: 22px;
    text-align: center;
  }

  .section-intro {
    font-size: 15px;
    margin-bottom: 14px;
    text-align: center;
  }

  .request-card {
    grid-template-columns: 58px 1fr 27px;
    min-height: 105px;
    padding: 15px 13px;
    border-radius: 10px;
  }

  .request-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .request-copy strong {
    font-size: 17px;
  }

  .request-copy span {
    font-size: 14px;
    line-height: 1.35;
  }

  .radio-indicator {
    width: 22px;
    height: 22px;
  }

  .form-section {
    margin-top: 27px;
  }

  .section-title {
    font-size: 19px;
    margin-bottom: 15px;
  }

  .media-location {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .map-placeholder {
    height: 210px;
  }

  .submit-wrap input {
    min-height: 55px;
    font-size: 18px;
  }

  .footer {
    gap: 12px 20px;
  }
}

@media (max-width: 480px) {
    .form-header .civicvox-header-link {
        gap: 8px;
    }

    .form-header .civicvox-header-logo {
        width: 120px;
    }

    #civicvox-municipality-name {
        font-size: 20px;
    }
}

@media (max-width: 380px) {
  .form-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .request-card {
    grid-template-columns: 50px 1fr 23px;
    padding: 13px 10px;
  }

  .request-icon {
    width: 43px;
    height: 43px;
  }

  .request-copy strong {
    font-size: 16px;
  }

  .request-copy span {
    font-size: 13px;
  }
}


/* ---------------- DESKTOP ---------------- */

@media (min-width: 768px) {



}


/* --- Verificare număr SMS --- */
.sms-verification-section {
  margin-top: 18px;
  background: var(--white);
  padding: 20px;
  border-radius: 11px;
}

.sms-verification-section strong,
.sms-verification-section span {
  color: var(--text);
}

.sms-verification-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.sms-verify-button,
.sms-resend-button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 9px;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.sms-verify-button {
  background: var(--blue);
  color: #fff;
}
.sms-resend-button {
  background: #eef2f7;
  color: var(--text);
}
.sms-verify-button:disabled,
.sms-resend-button:disabled {
  opacity: .6;
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .sms-verification-actions { flex-direction: column; }
  .sms-verify-button, .sms-resend-button { width: 100%; }
}


/* ---------- Sondaje CivicVOX ---------- */
.civicvox-surveys-list { display:flex; flex-direction:column; gap:20px; }
.civicvox-survey-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:22px; box-shadow:0 4px 18px rgba(0,0,0,.04); }
.civicvox-survey-question { margin:0 0 18px; font-size:20px; line-height:1.35; }
.civicvox-survey-options { display:flex; flex-direction:column; gap:10px; }
.civicvox-survey-hint { margin:-8px 0 12px; color:#646970; font-size:13px; }
.civicvox-survey-option { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid #e5e7eb; border-radius:10px; cursor:pointer; }
.civicvox-survey-option:hover { border-color:#b9c7d8; background:#f8fafc; }
.civicvox-survey-actions { margin-top:16px; }
.civicvox-survey-vote-btn { border:0; border-radius:9px; padding:11px 20px; cursor:pointer; font-weight:600; }
.civicvox-survey-vote-btn:disabled { opacity:.6; cursor:default; }
.civicvox-survey-results-btn { border:1px solid #2271b1; border-radius:9px; padding:10px 18px; cursor:pointer; font-weight:600; margin-left:8px; background:#fff; color:#2271b1; }
.civicvox-survey-results-btn:hover { background:#f5f9fd; }
.civicvox-survey-message { margin-top:14px; font-weight:600; }
.civicvox-survey-results { margin-top:18px; }
.civicvox-survey-result { margin:12px 0; }
.civicvox-survey-result-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; font-size:14px; }
.civicvox-survey-result-bar { height:10px; background:#e5e7eb; border-radius:8px; overflow:hidden; }
.civicvox-survey-result-fill { height:100%; background:#2271b1; border-radius:8px; }
.civicvox-survey-loading, .civicvox-survey-empty { padding:18px; border-radius:12px; background:#f8fafc; }
@media (max-width:700px) { .civicvox-survey-card { padding:18px; } .civicvox-survey-question { font-size:18px; } }

/* ---------- Sondaje CivicVOX ---------- */
.civicvox-surveys-list { display:flex; flex-direction:column; gap:20px; }
.civicvox-survey-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:22px; box-shadow:0 4px 18px rgba(0,0,0,.04); }
.civicvox-survey-question { margin:0 0 18px; font-size:20px; line-height:1.35; }
.civicvox-survey-options { display:flex; flex-direction:column; gap:10px; }
.civicvox-survey-hint { margin:-8px 0 12px; color:#646970; font-size:13px; }
.civicvox-survey-option { display:flex; align-items:center; gap:10px; padding:12px 14px; border:1px solid #e5e7eb; border-radius:10px; cursor:pointer; }
.civicvox-survey-option:hover { border-color:#b9c7d8; background:#f8fafc; }
.civicvox-survey-actions { margin-top:16px; }
.civicvox-survey-vote-btn { border:0; border-radius:9px; padding:11px 20px; cursor:pointer; font-weight:600; }
.civicvox-survey-vote-btn:disabled { opacity:.6; cursor:default; }
.civicvox-survey-results-btn { border:1px solid #2271b1; border-radius:9px; padding:10px 18px; cursor:pointer; font-weight:600; margin-left:8px; background:#fff; color:#2271b1; }
.civicvox-survey-results-btn:hover { background:#f5f9fd; }
.civicvox-survey-message { margin-top:14px; font-weight:600; }
.civicvox-survey-results { margin-top:18px; }
.civicvox-survey-result { margin:12px 0; }
.civicvox-survey-result-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:6px; font-size:14px; }
.civicvox-survey-result-bar { height:10px; background:#e5e7eb; border-radius:8px; overflow:hidden; }
.civicvox-survey-result-fill { height:100%; background:#2271b1; border-radius:8px; }
.civicvox-survey-loading, .civicvox-survey-empty { padding:18px; border-radius:12px; background:#f8fafc; }
@media (max-width:700px) { .civicvox-survey-card { padding:18px; } .civicvox-survey-question { font-size:18px; } }

/* Contact opțional pentru modulul Evaluarea dumneavoastră */
.feedback-contact-prompt {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.feedback-contact-prompt p {
  margin: 0 0 1rem;
}


.civicvox-alert-preference-item {
  margin: 8px 0;
}

.civicvox-alert-announcement-preference {
  margin-top: 22px;
}

/* Buton vizualizare sondaje */
.survey-view-wrap { margin-top:14px; text-align:center; }
.survey-view-btn { border:0; border-radius:9px; padding:11px 20px; cursor:pointer; font-weight:600; background:#2271b1; color:#fff; }
.survey-view-btn:hover { opacity:.92; }

/* Rezultate sondaj pe link */
.civicvox-public-survey-results-button { appearance:none; -webkit-appearance:none; border:1px solid #2271b1 !important; border-radius:9px !important; padding:10px 18px !important; cursor:pointer; font-weight:600; margin-left:8px; background:#fff !important; color:#2271b1 !important; font-family:inherit; font-size:inherit; line-height:1.2; }
.civicvox-public-survey-results-button:hover { background:#f5f9fd; }
.civicvox-public-survey-results-button:focus { outline:2px solid #2271b1; outline-offset:2px; }
.civicvox-public-survey-results-container[hidden] { display:none !important; }
.civicvox-public-survey-results-container { margin-top:18px; }
@media (max-width:700px) { .civicvox-public-survey-results-button { margin-left:0; margin-top:8px; } }

.civicvox-webpush-info{color:#d93025;margin-top:10px}
.civicvox-webpush-success{color:#198754;margin-top:10px}
.civicvox-webpush-error{color:#c62828;margin-top:10px}


/* Butonul către arhiva anunțurilor și alertelor apare în interiorul modulului, nu pe cardul de selectare. */
.civicvox-all-news-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}
.civicvox-all-news-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid #0757d5;
  border-radius: 7px;
  background: #0757d5;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.civicvox-all-news-button:hover,
.civicvox-all-news-button:focus-visible {
  background: #0646ad;
  border-color: #0646ad;
  color: #fff !important;
}

/* CivicVOX: culorile cardurilor se aliniază cu cele de pe site-ul primăriei */
.request-options > .request-card:has(input[name="tip_solicitare"][value="informatii"]) {
  background: #112B4E !important;
  border-color: #112B4E !important;
  color: #fff !important;
}
.request-options > .request-card:has(input[name="tip_solicitare"][value="alerte"]) {
  background: #0757D5 !important;
  border-color: #0757D5 !important;
  color: #fff !important;
}

.request-options > .request-card:has(input[name="tip_solicitare"][value="audiente"]) {
  background: #6741A5 !important;
  border-color: #6741A5 !important;
  color: #fff !important;
}
.request-options > .request-card:has(input[name="tip_solicitare"][value="sesizare"]) {
  background: #B94B18 !important;
  border-color: #B94B18 !important;
  color: #fff !important;
}
.request-options > .request-card:has(input[name="tip_solicitare"][value="sondaje"]) {
  background: #292929 !important;
  border-color: #292929 !important;
  color: #fff !important;
}
.request-options > .request-card:has(input[name="tip_solicitare"][value="mesaj"]) {
  background: #16834A !important;
  border-color: #16834A !important;
  color: #fff !important;
}
.request-options > .request-card:has(input[name="tip_solicitare"][value="feedback"]) {
  background: #E5B800 !important;
  border-color: #E5B800 !important;
  color: #171717 !important;
}

.request-options > .request-card .request-copy,
.request-options > .request-card .request-copy strong,
.request-options > .request-card .request-copy span,
.request-options > .request-card .request-card-label,
.request-options > .request-card .request-card-label strong,
.request-options > .request-card .request-card-label span {
  color: inherit !important;
}

.request-options > .request-card .request-icon {
  background: rgba(255,255,255,.16) !important;
  color: inherit !important;
}
.request-options > .request-card:has(input[name="tip_solicitare"][value="feedback"]) .request-icon {
  background: rgba(23,23,23,.10) !important;
}
.request-options > .request-card .radio-indicator {
  border-color: currentColor !important;
}
.request-options > .request-card.is-selected,
.request-options > .request-card:has(input[name="tip_solicitare"]:checked) {
  box-shadow: 0 0 0 3px rgba(7, 87, 213, .18), 0 5px 16px rgba(0,0,0,.14) !important;
  filter: saturate(1.05);
}


/* ---------------- INFORMAȚII PRIMĂRIE: card program demonstrativ ---------------- */
.information-section .section-title { margin-bottom: 12px; }
.information-section .section-intro { margin-bottom: 22px; }
.info-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(17, 17, 17, .045);
}
.info-hours-card { max-width: 760px; margin: 0 auto; }
.info-card-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  background: #f3f7ff;
  border-bottom: 1px solid #e2eaf6;
}
.info-card-icon {
  display: inline-flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e0ebff;
  font-size: 23px;
}
.info-card-heading h3 { margin: 0 0 4px; color: var(--text, #111); font-size: 18px; line-height: 1.3; }
.info-card-heading p { margin: 0; color: #667085; font-size: 13px; line-height: 1.4; }
.info-demo-badge {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0d5;
  color: #81520a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.info-hours-list { padding: 4px 22px; }
.info-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid #edf0f5;
  color: var(--text, #111);
  font-size: 15px;
}
.info-hours-row:last-child { border-bottom: 0; }
.info-hours-row strong { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-hours-row.is-closed { color: #667085; }
.info-hours-row.is-closed strong { color: #b42318; }
.info-hours-note { margin: 0; padding: 13px 22px 17px; color: #667085; background: #fafbfc; font-size: 12px; line-height: 1.5; }
@media (max-width: 600px) {
  .info-card-heading { gap: 10px; padding: 16px 14px; flex-wrap: wrap; }
  .info-card-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .info-card-heading h3 { font-size: 16px; }
  .info-demo-badge { margin-left: auto; }
  .info-hours-list { padding: 4px 15px; }
  .info-hours-row { font-size: 14px; padding: 12px 0; }
  .info-hours-note { padding: 12px 15px 15px; }
}
