/* === General Layout === */
body {
  font-family: 'Segoe UI', 'Noto Sans Bengali', 'Noto Sans Assamese', Arial, sans-serif;
  background: linear-gradient(135deg, #e9f6fd 0%, #f9e2ff 100%);
  color: #222;
  margin: 0;
  padding: 0;
}
a {
  color: #1976d2;
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

/* === Nav Bar === */
.nav-bar {
  display: flex;
  justify-content: center;
  background: #2d4c7c;
  padding: 0.5rem 0;
  gap: 12px;
}
.nav-button {
  color: #fff;
  padding: 7px 20px;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
  transition: background .2s;
}
.nav-button:hover, .nav-button:focus {
  background: #1c2a45;
}

/* === Other Apps Bar === */
.other-apps-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #eaf3fb;
  padding: 8px 0 5px 0;
  gap: 11px;
}
.app-button {
  color: #236b4d;
  background: #e5f8ff;
  border-radius: 5px;
  padding: 4px 14px;
  font-size: 1em;
  font-weight: 500;
  transition: background .2s, color .2s;
  border: 1px solid;
  text-decoration: none!important;
}
.app-button:hover, .app-button:focus {
  background: #c2e2f7;
  color: #1d3b79;
}
.area-active {
  background: #2d4c7c;
  color: #fff !important;
}
.area-active:hover {
  background: #1f1e1d;
  color: #f8ffad !important;
}

/* === Calculator Layout === */
.calculator {
  max-width: 750px;
  margin: 2px auto 10px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 24px #b2d6ef2e;
  padding: 6px 10px 10px 10px;
  position: relative;
}
.modern-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 7px;
  font-size: 1.6em;
  color: #2d4c7c;
  background: linear-gradient(90deg,#e3f0ff 0%,#fde5f1 100%);
  border-radius: 8px 8px 0 0;
  padding: 10px 0 7px 0;
}
.sub-title {
  font-size: .65em;
  color: #44225a;
  font-weight: 400;
}

/* Shape selection box styling */
.shape-select-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2px 0 2px 0;
  width: 100%;
}

.shape-select-row select,
select.shape-select {
  height: 44px;
  font-size: 1.05em;
  min-width: 260px;
  max-width: 95vw;
  text-align: center;
  padding: 2px 15px;
  border-radius: 4px;
  border: 2px solid #b5d6ee;
  background: #fff;
  box-shadow: 0 1px 7px #d2eaff18;
  transition: border-color 0.18s, box-shadow 0.18s;
  margin: 0 auto;
  display: block;
}

.shape-select-row select:focus,
select.shape-select:focus {
  border-color: #9654bb;
  outline: none;
  box-shadow: 0 0 0 2px #e7bdfc55;
}

@media (max-width: 600px) {
  .shape-select-row select,
  select.shape-select {
    font-size: 1.08em;
    height: 44px;
    min-width: 150px;
    max-width: 99vw;
    padding: 6px 8px;
  }
  .shape-select-row {
    margin: 2px 0 2px 0;
  }
}

/* === Input Group === */
.input-group {
  background: linear-gradient(90deg,#f5fcff 0%,#fff6ff 100%);
  border-radius: 16px;
  padding: 2px 16px 22px 16px;
  margin: 0 auto 25px auto;
  box-shadow: 0 2px 16px #c9e5fa29;
  max-width: 710px;
  line-height: 1.5;
}
.input-group label {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 1.06em;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  background: #e2e2e2;
  border-radius: 4px;
  padding: 7px 0 7px 0;
  box-shadow: 0 1px 5px #e2bdfc22;
  color: #69215c;
}
.side-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 4px;
}

.input-block {
  background: linear-gradient(90deg,#e9f6fd 0%,#fff0f7 100%);
  border-radius: 8px;
  margin-bottom: 7px;
  padding: 10px 0;
}
.input-block input,
.input-block select {
  font-size: 1.1em;
  padding: 2px 6px;
  border: 1.5px solid #b5d6ee;
  border-radius: 6px;
  box-sizing: border-box;
  background: #47EDA3;
  margin: auto;
}
.input-block input:focus,
.input-block select:focus {
  border-color: #9d3a8c;
  outline: none;
}
.input-block label {
  font-weight: 600;
  color: #488ac7;
  margin-bottom: 3px;
  font-size: 1.07em;
}
.input-row {
  margin-bottom: 12px;
}
input[type="number"],
select.unit-select {
  font-size: 1em;
  padding: 8px 12px;
  border-radius: 7px;
  border: 2px solid #b7d7e7;
  width: 110px;
  margin-bottom: 7px;
  background: #ffffff;
  transition: border-color 0.17s, box-shadow 0.17s;
  box-shadow: 0 1px 7px #d2eaff18;
}
input[type="number"]:focus, 
select.unit-select:focus {
  border-color: #9d3a8c;
  outline: none;
  box-shadow: 0 0 0 2px #e7bdfc55;
}
select.unit-select {
  width: 70px;
}

/* === Buttons === */
#calcBtn{background: #096c80;
    color: #ffffff;
}
#calcBtn:hover{background: #090296;
    color: #ffffff;
}
button, .reset-btn, .cookie-consent-btn {
  background: #3b4da8;
  color: #fff;
  border: none;
  font-size: 1.06em;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 7px;
  margin: 7px 7px 7px 0;
  cursor: pointer;
  transition: background .18s, color .18s;
}
button:hover, .reset-btn:hover, .cookie-consent-btn:hover {
  background: #0d0975;
  color: #fff;
}
.button-group {
  margin: 17px 0 0 0;
  text-align: center;
}

/* === Results === */
#result-section {
  margin: 22px 0 7px 0;
  text-align: center;
  background: linear-gradient(90deg,#f9fff7 0%,#eaf7f7 100%);
  border-radius: 10px;
  padding: 10px 6px 15px 6px;
  box-shadow: 0 1px 8px #b7e6ba27;
}
#result-heading {
  margin-top: 3px;
  color: #2d4c7c;
  font-size: 1.25em;
}
#result-table {
  margin-top: 10px;
  font-size: 1.19em;
  color: #166a22;
  font-weight: 600;
}
#result-error {
  color: #c70010;
  font-size: 1em;
  font-weight: 500;
  margin-bottom: 9px;
}
#formulaDisplay {
  color: #0c3f58;
  background: #eaf8ff;
  padding: 6px 8px;
  border-radius: 7px;
  margin: 16px auto 0 auto;
  font-size: .99em;
  font-family: inherit;
  display: none;
}

/* === Canvas Area === */
.calculator .canvas-center,
.calculator #areaCanvas {
  width: 610px !important;
  max-width: 100%;
  height: 260px !important;
  margin: 0 auto 16px auto;
  display: block;
  background: #f3fafd;
  border-radius: 11px;
  box-shadow: 0 1px 8px #c9e5fa19;
}

/* === Example Image === */
#exampleLandImage {
  text-align: center;
  margin-bottom: 20px;
}
#exampleLandImage img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 320px;
  height: auto;
  border: 1.5px solid #cecef7;
  background: #fafdff;
  border-radius: 9px;
  box-shadow: 0 2px 12px 0 rgba(105, 139, 200, 0.06);
}

/* === History Section === */
#history-area {
  margin: 18px auto 0 auto;
  max-width: 600px;
  background: linear-gradient(90deg,#f8fff4 0%,#eaf3fb 100%);
  border-radius: 11px;
  padding: 10px 10px 8px 10px;
  box-shadow: 0 1px 7px #c9f1e729;
}
.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
#historyList-area {
  list-style: none;
  padding: 0 7px 0 5px;
  margin: 0;
  font-size: .99em;
}
#historyList-area li {
  background: #e8f7ef;
  border-radius: 6px;
  margin-bottom: 8px;
  padding: 7px 9px 4px 9px;
  line-height: 1.6;
  box-shadow: 0 1px 4px #b0e7be13;
}

/* === Share Bar === */
.social-share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 16px 0 20px 0;
  font-size: 1em;
}
.share-label {
  font-weight: 600;
  margin-right: 6px;
  color: #355;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  border-radius: 50%;
  width: 38px; height: 38px;
  color: #333;
  transition: background 0.16s, color 0.16s;
  text-decoration: none;
  font-size: 1.1em;
  border: none;
}
.social-btn:hover, .social-btn:focus {
  background: #d1eaff;
  color: #007bff;
}
.social-btn.facebook { color: #1877f3; }
.social-btn.twitter  { color: #1da1f2; }
.social-btn.whatsapp { color: #25d366; }
.social-btn.linkedin { color: #0077b5; }
.social-btn.email    { color: #7a4cfd; }

/* === User Rating Box === */
.user-rating-box {
  margin: 26px auto 16px auto;
  text-align: center;
  font-size: 1.13em;
}
.star-rating {
  display: inline-block;
  direction: ltr;
}
.star {
  cursor: pointer;
  color: #ddd;
  font-size: 2em;
  transition: color 0.2s;
  display: inline-block;
}
.star.selected,
.star.hovered,
.star.active {
  color: #ffd700;
  text-shadow: 0 0 2px #ffbb00;
}
.rating-info {
  margin-top: 5px;
  color: #333;
  font-size: 0.95em;
}
.thank-you {
  color: #2e7d32;
  margin-top: 7px;
  font-weight: bold;
}
/*   latest star code */
.star {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}
.star.selected {
  color: gold;
}
.star.disabled {
  pointer-events: none;
  opacity: 0.65;
}

/* === Feedback/Comment Form === */
#feedback-section {
  margin: 30px auto 0 auto;
  max-width: 500px;
  background: linear-gradient(90deg,#e9f6fd 0%,#fff0f7 100%);
  border-radius: 13px;
  padding: 20px 18px 18px 18px;
  box-shadow: 0 1.5px 8px #b6e4fd33;
}
#feedback-section h3 {
  color: #9654bb;
  margin-bottom: 13px;
  font-size: 1.24em;
  text-align: center;
}
#feedbackForm label {
  display: block;
  color: #2d4c7c;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 1.06em;
}
#feedbackForm input[type="text"],
#feedbackForm input[type="email"],
#feedbackForm textarea {
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1.5px solid #b5d6ee;
  font-size: 1em;
  margin-bottom: 11px;
  background: #fafdff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#feedbackForm input[type="text"]:focus,
#feedbackForm input[type="email"]:focus,
#feedbackForm textarea:focus {
  border-color: #9654bb;
  outline: none;
  box-shadow: 0 0 0 2px #e7bdfc44;
}
#feedbackForm textarea {
  resize: vertical;
  min-height: 70px;
  max-height: 220px;
}
#feedbackForm button[type="submit"] {
  background: linear-gradient(90deg,#2d4c7c 0%,#9654bb 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.08em;
  border-radius: 7px;
  border: none;
  padding: 9px 26px;
  cursor: pointer;
  transition: background 0.16s;
  margin-top: 5px;
  margin-bottom: 2px;
}
#feedbackForm button[type="submit"]:hover {
  background: linear-gradient(90deg,#9654bb 0%,#2d4c7c 100%);
}
#feedback-success,
#feedback-error {
  margin-top: 10px;
  font-size: 1.02em;
  text-align: center;
  font-weight: 500;
}
#feedback-success { color: #227a4f; }
#feedback-error { color: #b00020; }

/* === SEO Description === */
.seo-description {
  margin: 19px auto 0 auto;
  max-width: 650px;
  background: #f2f6ff;
  border-radius: 10px;
  padding: 12px 15px 14px 15px;
  color: #171717;
  box-shadow: 0 1px 5px #b2d6ef22;
  font-size: 1.08em;
  text-align: justify;
  line-height: 26px;
}
.seo-description h2 {
    font-size: 1.3em!important; text-align: left!important; color: #29070c!important;
  color: #2d4c7c;
  margin-top: 0;
  line-height: 32px;
}
.seo-description ul, .seo-description ol {
  margin: 4px 0 8px 20px;
  padding: 0;
}

/* === Ad Containers === */
.ad-container {
  margin: 18px auto 12px auto;
  text-align: center;
}
.ad-slot {
  min-height: 70px;
  min-width: 320px;
  display: inline-block;
}
/* === Toggle Mode Button (Dark/Light) === */
.toggle-mode {
  position: absolute;
  right: 8vw;
  top: 19px;
  background: #eaf3fb;
  color: #9654bb !important;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  border: none;
  font-size: 1.35em;
  box-shadow: 0 1px 8px #b0e7be20;
  cursor: pointer;
  z-index: 15;
  transition: background 0.14s, color 0.14s;
}

.blinking-icon {
  animation: pulse-icon 1.2s infinite alternate;
}

@keyframes pulse-icon {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.18); opacity: 0.7; }
}


.toggle-mode:hover, .toggle-mode:focus {
  background: #9654bb;
  color: #fff !important;
}

.review-box {
    max-width: 520px;
    margin: auto;
}

#reviewName {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

#reviewText {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 10px;
}

#reviewList {
  margin-top: 15px;
}

#reviewList div {
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}

.review-box button {
  background: #315a22;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

/* converter */
.converter {
  max-width: 750px;
  margin: 0 auto;
  padding: 12px 0 24px 0;
}
.converter-section {
  background: #ffff78;
  border-radius: 10px;
  padding: 0 0 30px 0;
  margin-bottom: 30px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px #0001;
  border: none;
}

.converter-header {
  background: #bbb;
  color: #222;
  font-size: 1.25em;
  font-weight: 700;
  padding: 5px 6px;
  border-radius: 10px 10px 0 0;
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: 0.5px;
}

.converter-form {
  width: 100%;
  margin-top: 16px;
}

.converter-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.converter-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 0;
  min-width: 120px;
}

.unit-row {
  display: flex;
  align-items: center;
  margin-top: 5px;
  gap: 6px;
}
.converter-label {
  font-weight: 600;
  font-size: 1.06em;
  color: #222;
}

.enter-label {
  position: absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 1.08em;
  color: #222;
  margin-bottom: 10px;
}
.converter-equals {
  font-size: 1.7em;
  font-weight: 600;
  color: #31477b;
  margin: 0 0.2em;
  align-self: center;
}

.converter-input, .converter-select {
  border: 2px solid #b8cce0;
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 1.17em;
  width: 140px;
  margin: 0 2px 7px 2px;
  background: #fff;
}
.converter-input[readonly] {
  background: #f5f7fa;
}
.converter-select {
  background: #19ff3c;
  font-weight: 600;
}

.swap-row {
  text-align: center;
  margin-top: 14px;
}
.swap-btn {
  background: #28377a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 24px;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  margin: 0 auto;
  display: inline-block;
  box-shadow: 0 2px 8px #0001;
}
#area-primary.converter-input, #area-secondary.converter-input, #length-primary.converter-input, #length-secondary.converter-input  {
    width: 180px;
}

@media (max-width: 700px) {
  .converter-section { max-width: 99%; }
  .converter-row {
    flex-direction: column;
    gap: 0;
    align-items: center;
  }
  .equals-col {
    margin: 13px 0 13px 0;
    text-align: center;
  }
  .enter-label {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 16px 0 5px 0;
    display: block;
    text-align: center;
    width: 100%;
  }
#area-primary.converter-input, #area-secondary.converter-input, #length-primary.converter-input, #length-secondary.converter-input  {
    width: 80%;
}
  .converter-col {
    min-width: 0;
    width: 100%;
    margin-bottom: 0;
  }
  .unit-row {
    justify-content: center;
    width: 100%;
  }
  .converter-input, .converter-select {
    width: 95%;
    margin: 0 auto 7px auto;
  }
  .swap-row { margin-top: 14px; }
}

/* === Cookie Consent === */
.cookie-consent {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #eaf3fb;
  color: #2d4c7c;
  padding: 18px 25px 13px 25px;
  border-top: 2px solid #b5d6ee;
  font-size: 1.02em;
  z-index: 100;
  box-shadow: 0 -2px 8px #b9e9c74a;
  text-align: center;
}
.cookie-consent a {
  color: #9654bb;
  text-decoration: underline;
}
.cookie-consent-btn {
  margin-left: 15px;
  background: linear-gradient(90deg,#2d4c7c 0%,#9654bb 100%);
  color: #fff;
  padding: 7px 20px;
  border-radius: 8px;
  border: none;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-consent-btn:hover, .cookie-consent-btn:focus {
  background: linear-gradient(90deg,#9654bb 0%,#2d4c7c 100%);
}

/* === Footer === */
.footer {
  background: #2d4c7c;
  color: #fff;
  border-radius: 0 0 18px 18px;
  padding: 20px 10px 16px 10px;
  text-align: center;
  font-size: 1.02em;
  margin-top: 27px;
}
.legal-notice {
  font-size: 0.9em;
  color: #e2ffd9;
  margin-bottom: 5px;
}

/* === Responsive === */
@media (max-width: 750px) {
  html, body {
    font-size: 17px !important;
  }
  .modern-title {
    font-size: 1.4em;
    padding-top: 8px;
    padding-bottom: 5px;
  }
  .calculator, .seo-description, #history-area, .user-rating-box, #feedback-section {
    max-width: 100vw;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .input-group {
    padding: 6px 1vw 7px 1vw;
    max-width: 99vw;
  }
  .input-block {
    padding: 7px 0;
    margin-bottom: 10px;
  }
  .side-group {
    gap: 6px;
  }
  .input-block input, .input-block select, input[type="number"], select.unit-select {
    font-size: 1em;
    padding: 4px 4px;
    min-width: 0;
    min-width: 22vw;
    max-width: 99vw;
    margin-bottom: 4px;
  }
  .button-group, button, .reset-btn, .cookie-consent-btn {
    font-size: 1.1em;
    padding: 10px 4;
    margin: 9px 0 9px 0;
  }
  .calculator .canvas-center,
  .calculator #areaCanvas {
    width: 92vw !important;
    height: 38vw !important;
    min-width: 0;
    max-width: 100vw;
  }
  #exampleLandImage img {
    width: 99vw;
    max-width: 99vw;
    min-width: 0;
    height: auto;
  }
  #feedback-section {
    padding: 7px 2vw 7px 2vw;
  }
}
@media (max-width: 530px) {
  .side-group {
    flex-direction: column;
    gap: 7px;
  }
  .calculator .canvas-center,
  .calculator #areaCanvas {
    width: 97vw !important;
    height: 38vw !important;
    min-width: 0;
    max-width: 100vw;
  }
  #feedback-section {
    padding: 10px 2vw 10px 2vw;
  }
  .input-group {
    padding: 7px 2vw 8px 2vw;
  }
}
@media (max-width: 450px) {
  html, body {
    font-size: 16px !important;
  }
  .modern-title {
    font-size: 1.1em;
  }
  .input-block input, .input-block select, input[type="number"], select.unit-select {
    font-size: 1em;
    padding: 4px 4px;
  }
}
@media (max-width: 400px) {
  .modern-title {
    font-size: 1.28em;
    padding-top: 8px;
    padding-bottom: 5px;
  }
  #exampleLandImage img {
    min-width: 0;
    width: 97vw;
    max-width: 97vw;
  }
}

/* === Dark Mode === */
body.dark-mode {
  background: #212938;
  color: #eaf3fb;
}
body.dark-mode .calculator {
  background: #22263a;
  color: #eaf3fb;
  box-shadow: 0 2px 26px #0e1a0f80;
}
body.dark-mode .modern-title { color: #b1e7f6; background: #2d4c7c22; }
body.dark-mode .input-group {
  background: #2d4c7c44;
  box-shadow: 0 2px 18px #1c6b2a2a;
  color: #eaf3fb;
}
body.dark-mode .input-group label { color: #eaf3fb; background: #9654bb33; }
body.dark-mode .input-row { color: #eaf3fb; }
body.dark-mode input[type="number"], 
body.dark-mode select.unit-select {
  background: #2d4c7c55;
  color: #eaf3fb;
  border: 1.5px solid #9654bb;
}
body.dark-mode #result-section {
  background: #2d4c7c33;
  box-shadow: 0 1px 8px #9654bb22;
}
body.dark-mode #result-table { color: #b1e7f6; }
body.dark-mode #result-heading { color: #b1e7f6; }
body.dark-mode #result-error { color: #ffb3b3; }
body.dark-mode #formulaDisplay {
  background: #9654bb22;
  color: #eaf3fb;
}
body.dark-mode .canvas-center, 
body.dark-mode #areaCanvas {
  background: #2d4c7c55;
}
body.dark-mode #history-area {
  background: #2d4c7c33;
  color: #eaf3fb;
}
body.dark-mode #historyList-area li {
  background: #9654bb22;
  color: #eaf3fb;
}
body.dark-mode .social-share-bar .share-label { color: #b1e7f6; }
body.dark-mode .social-btn {
  background: #2d4c7c55;
  color: #b1e7f6;
}
body.dark-mode .social-btn:hover, 
body.dark-mode .social-btn:focus {
  background: #9654bb;
  color: #fff;
}
body.dark-mode .user-rating-box {
  background: #24422c;
  color: #b1e7f6;
  box-shadow: 0 1px 5px #7ae8c722;
}
body.dark-mode .star-rating .star { color: #4e6652; }
body.dark-mode .star.selected,
body.dark-mode .star:hover,
body.dark-mode .star:focus { color: #ffc107; }
body.dark-mode .thank-you { color: #b1e7f6; }
body.dark-mode .seo-description {
  background: #2d4c7c33;
  color: #b1e7f6;
  box-shadow: 0 1px 5px #7ae8c722;
}
body.dark-mode .sub-title {color:#f0f0f0;}
body.dark-mode .shape-desc {color:#f0f0f0;}
body.dark-mode .seo-description h2 {color:#f0f0f0!important;}
body.dark-mode .ad-container .ad-slot {
  background: #2d4c7c55;
}
body.dark-mode .toggle-mode {
  background: #9654bb !important;
  color: #eaf3fb !important;
  position:fixed;
}
body.dark-mode .toggle-mode:hover, 
body.dark-mode .toggle-mode:focus {
  background: #b1e7f6 !important;
  color: #2d4c7c !important;
}
body.dark-mode .cookie-consent {
  background: #2d4c7c33;
  color: #b1e7f6;
  border-top: 2px solid #9654bb;
}
body.dark-mode .cookie-consent a { color: #b1e7f6; }
body.dark-mode .cookie-consent-btn {
  background: #2d4c7c;
  color: #b1e7f6;
}
body.dark-mode .cookie-consent-btn:hover, 
body.dark-mode .cookie-consent-btn:focus {
  background: #b1e7f6;
  color: #2d4c7c;
}
body.dark-mode .footer {
  background: #2d4c7c;
  color: #fff;
}
body.dark-mode .legal-notice { color: #b1e7f6; }
body.dark-mode #feedback-section {
  background: #2d4c7c44;
  color: #eaf3fb;
}
body.dark-mode #feedback-section h3 {
  color: #b1e7f6;
}
body.dark-mode #feedbackForm input[type="text"],
body.dark-mode #feedbackForm input[type="email"],
body.dark-mode #feedbackForm textarea {
  background: #2d4c7c55;
  color: #eaf3fb;
  border: 1.5px solid #9654bb;
}
body.dark-mode #feedbackForm label {
  color: #b1e7f6;
}

/* === Miscellaneous === */
::-webkit-input-placeholder { color: #657896; opacity: 1; }
::-moz-placeholder { color: #657896; opacity: 1; }
:-ms-input-placeholder { color: #657896; opacity: 1; }
::placeholder { color: #657896; opacity: 1; }

.input-block input::placeholder,
input[type="number"]::placeholder {
  color: #9654bb;
  opacity: 1;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #e9f6fd;
  padding: 2px 4px 6px 4px;
  border-radius: 14px;
}
.input-block {
  background: #e0f2fb;
  border-radius: 10px;
  padding: 2px 6px 2px 6px;
}
.input-block-label {
    display: block;
    background-color: #a3d3f7;
  text-align: center;
  font-size: 1.22em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #22263a;
}
.input-flex-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-bottom: 7px;
}
.input-flex-row input[type="number"] {
  flex: 1 1 0;
  min-width: 0;
  font-size: 1.08em;
  padding: 7px 6px;
  border-radius: 6px;
  border: 1.5px solid #b5d6ee;
  background: #fafdff;
  color: #69215c;
}
.input-flex-row select {
  font-size: 1.08em;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1.5px solid #65cd4b;
  background: #8fff9a;
  color: #1b5920;
  min-width: 70px;
  font-weight: 600;
}
.input-flex-row input[type="number"]::placeholder {
  color: #a275c4;
  opacity: 1;
}
@media (max-width: 700px) {
  .input-block {
    padding: 8px 2vw 12px 2vw;
  }
  .input-flex-row input[type="number"] {
    font-size: 1.08em;
    padding: 7px 4px;
  }
}