html, body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

:root {
  --main-blue: #336799;
  --bg-blue: #4a7eaa;
}

/*=========================
   Box sizing
   =========================*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

/*=========================
   Base
   =========================*/
body {
  overflow-x: hidden;
  font-family: 'Source Sans 3', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
}

.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 1400px;
  margin: 0;
}

a:link,
a:visited {
  color: var(--main-blue);
  text-decoration: underline;
  font-weight: 600;
}

a:hover {
  color: var(--main-blue);
  text-decoration: none;
  font-weight: 600;
}

.logos img:hover {
  opacity: 0.7;
}

/* Desktop logos row */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 25px;
}

.logos p {
  margin: 0;
}

.logos img {
  height: auto;
  object-fit: contain;
}

/*=========================
   Sidebar / Navigation
   =========================*/
.sidebar {
  min-width: 270px;
  max-width: 280px;
  background-color: var(--main-blue);
  background-image: url('navibg.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 280px auto;
  background-attachment: local;
  padding-top: 10px;
  padding-left: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.logo-area {
  padding: 20px 16px;
  margin-bottom: 20px;
}

.logo {
  height: auto;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation li {
  margin-bottom: 0px;
  padding-left: 15px;
  background: transparent;
}

.navigation li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 30px 10px 20px;
  font-size: 1.05rem;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  margin-right: -1px;
  margin-bottom: 5px;
  transition: all 0.2s ease;
  font-weight: 600;
}

.navigation li.active a,
.navigation li a:hover {
  background-color: white;
  color: var(--main-blue);
  font-weight: 600;
}

.navigation ul:last-child {
  margin-bottom: 0;
}

/*=========================
   Content / Typography
   =========================*/
.content {
  flex: 1;
  min-width: 0;
  padding: 40px 20px 20px 80px;
}

h1 {
  font-family: "Copperplate Gothic Light", "Copperplate Light", "Copperplate", "Cormorant SC", serif;
  color: var(--main-blue);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0;
  text-transform: uppercase;
}

h2 {
  color: var(--main-blue);
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  border-bottom: 2px solid #ddd;
}

h3 {
  color: var(--main-blue);
  font-size: 1.5rem;
  margin-bottom: -10px;
  padding-bottom: 5px;
}

.subtitle {
  color: var(--main-blue);
  font-size: 22px;
  margin-top: 20px;
  margin-bottom: 20px;
  border: none;
}

.intro p {
  margin-bottom: 1.5rem;
}

/*=========================
   Staff / Profiles
   =========================*/
.staff-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 30px;
  margin-bottom: 35px;
  max-width: 900px;
  margin-right: 5px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 5rem;
  line-height: 1.6;
}

.profile-img {
  border-radius: 2px;
  line-height: none;
  max-width: 260px;
  height: auto;
}

.profile-info h3 {
  color: var(--main-blue);
  margin-bottom: -15px;
}

/*=========================
   Ethics
   =========================*/
.ethics-container {
  margin-top: 0px;
  margin-left: 0px;
  margin-bottom: 30px;
}

.ethics-tab {
  background-color: var(--main-blue);
  color: white;
  display: inline-block;
  padding: 12px 25px 10px 25px;
  border-radius: 20px 20px 0 0;
  margin-left: 30px;
  font-weight: 600;
}

.ethics-content {
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 35px 15px 35px;
  font-size: 1.05rem;
}

.ethics-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #3a6d9c;
  font-weight: 600;
}

.link-icon {
  height: auto;
  margin-right: 8px;
  margin-bottom: -3px;
}

.ethics-list {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}

.ethics-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

.ethics-list .num {
  font-weight: 700;
  color: var(--main-blue);
  margin-right: 8px;
}

/*=========================
   Layout / Images
   =========================*/
.yhteys {
  padding: 15px 20px 0px 0px;
  margin: 0px;
  font-size: 1.05rem;
}

.kuva {
  border: 1px solid #ddd;
  padding: 5px;
  background: #fff;
  height: 267px;
  max-width: 100%;
}

.info-columns {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 5rem;
  margin: 20px 0 10px 0;
}

.info-columns2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 20px 0 0px 0;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  margin-top: -5px;
  font-size: 1.1rem;
}

.info-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--main-blue);
  margin-top: -1px;
  font-size: 1.8rem;
}

/*=========================
   Form base / validation
   =========================*/
input {
  border: 1px solid #cfd6df;
  transition: border-color 0.2s;
}

.was-validated textarea:invalid,
.was-validated input:invalid {
  border-left: 4px solid #cc0000 !important;
  border-color: #cc0000 !important;
  background-color: #fff9f9 !important;
}

.was-validated #toimitustapa-ryhma.radio-error {
  border: 2px solid #d93025;
  border-radius: 8px;
  padding: 10px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

form.is-submitting button[type="submit"],
form.is-submitting input[type="submit"] {
  opacity: 0.75;
  cursor: not-allowed;
}

.postiosoite-reveal {
  display: none;
}

/*=========================
   Meter rows
   =========================*/
.meter-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 5px;
  margin-left: -5px;
}

.meter-row .tab-item {
  flex: 0 0 160px;
  margin: 0;
}

.meter-reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  flex: 1;
  max-width: 200px;
}

.meter-reveal input:required {
  border-left: 3px solid var(--main-blue);
}

.meter-row.is-on .meter-reveal {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.meter-reveal input {
  width: 100%;
  padding: 5px;
  border: 1px solid #cfd6df;
  border-radius: 4px;
}

/*=========================
   Tabs / Options
   =========================*/
.form-card {
  padding: 5px 30px 30px 30px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.section-label {
  color: var(--main-blue);
  font-size: 20px;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  margin-top: 20px;
}

.custom-tabs {
  display: flex;
  flex-direction: column;
  overflow: visible;
  gap: 1px;
  margin-top: 15px;
}

.custom-tabs .tab-item {
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;
  padding-right: 14px;
}

.tab-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  background: #fff;
  transition: all 0.2s ease;
  border-radius: 20px;
}

.tab-radio {
  margin-right: 15px;
  flex: 0 0 auto;
  cursor: pointer;
  accent-color: #3a6d9c;
}

.tab-text {
  font-weight: 600;
  font-size: 15px;
  color: #555;
  transition: color 0.2s ease;
  margin-top: 3px;
}

.tab-item.is-active {
  background-color: #3a6d9c;
  border-radius: 20px;
}

.tab-item.is-active .tab-text {
  color: #fff;
}

.tab-item:not(.is-active):hover {
  background-color: #fff;
}

.tab-item:not(.is-active):hover .tab-text {
  color: #3a6d9c;
}

/*===== FORM GROUP =====*/
.option-group {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.option-group:last-of-type {
  border-bottom: none;
}

.option-title {
  font-weight: 700;
  color: var(--main-blue);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

input[type="checkbox"].tab-radio {
  accent-color: var(--main-blue);
  width: 18px;
  height: 18px;
  margin-bottom: 0;
}

.date-reveal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.tab-item.is-active + .date-reveal {
  display: block;
  opacity: 1;
}

.no-hover .tab-item {
  padding: 7px 0 7px 0;
  width: 420px;
  max-width: 100%;
}

.no-hover .tab-item.is-active {
  background-color: transparent;
}

.no-hover .tab-item.is-active .tab-text {
  color: #333;
}

.no-hover .tab-item:hover {
  background-color: transparent;
}

.no-hover .tab-item:hover .tab-text {
  color: #333;
}

.no-hover .tab-radio {
  accent-color: var(--main-blue);
  transform: scale(1.1);
}

/*=========================
   Form (general)
   =========================*/
.doit-form {
  margin: 0 auto;
  padding: 0;
  display: block;
  margin-top: 10px;
  margin-bottom: 20px;
}

input[name*="lukumäärä"],
input[name*="pinta-ala"],
input[name*="tilavuus"] {
  padding-right: 40px !important;
}

.radio-inline-group {
  display: flex;
  gap: 25px;
  height: 45px;
  align-items: center;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.radio-item input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.radio-item span {
  display: inline-block;
  position: relative;
  top: -5px;
  margin-left: 7px;
}

.doit-form input,
.doit-form textarea,
.doit-form select,
.doit-form .tab-text,
.doit-form .radio-item span {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 15px;
  color: #222;
}

.select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}

.select-wrapper select {
  width: 100%;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  color: #222;
  transition: border-color 0.2s;
}

.select-wrapper::after {
  content: "▼";
  font-size: 9px;
  color: #555;
  position: absolute;
  right: 15px;
  top: 53%;
  transform: translateY(-50%);
  pointer-events: none;
}

select:invalid,
select option[value=""] {
  color: #333;
}

.doit-form h2 {
  padding-bottom: 5px;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
}

/*=========================
   Signature
   =========================*/
.signature-container {
  margin-top: 30px;
}

.signature-row {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.signature-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.signature-field .line {
  border-bottom: 1px solid #000;
  height: 40px;
  margin-bottom: 8px;
}

.signature-field span {
  font-size: 11px;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 1px;
}

.print-note {
  font-size: 12px;
  color: #888;
  margin-top: 25px;
  font-style: italic;
}

/*=========================
   Instructions card
   =========================*/
.instructions-card {
  background-color: #f0f4f8;
  border-left: 4px solid var(--main-blue);
  padding: 1px 25px 10px 20px;
  margin: 15px 20px 20px 0px;
  font-size: 1.0rem;
  min-width: 350px;
}

.instructions-card.toimisto {
  max-width: 360px;
  width: 100%;
}

.instructions-card h3 {
  color: var(--main-blue);
  font-size: 20px;
  padding: 0;
  margin-bottom: 15px;
}

.instructions-card ul {
  margin-top: 10px;
  padding-left: 0px;
  list-style: none;
}

.instructions-card li {
  margin-bottom: 8px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.instructions-card li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: var(--main-blue);
  margin-top: -4px;
  font-size: 1.9rem;
}

.btn-print {
  background: #3f70a1;
  color: #fff;
  border: none;
  padding: 10px 100px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-weight: 600;
}

.btn-print:hover {
  background: #244b72;
}

/*=========================
   Print
   =========================*/
@media print {
  html,
  body {
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .form-card {
    box-shadow: none;
    border: none;
  }

  .instructions-card,
  header,
  .sidebar,
  .btn-print,
  input[type="submit"] {
    display: none !important;
    visibility: hidden !important;
  }

  .container,
  .content,
  main {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .form-card {
    margin-bottom: 30px !important;
    break-inside: avoid !important;
  }
}

.print-mirror {
  display: none;
}

@media print {
  textarea.auto-expand {
    display: none !important;
  }

  .print-mirror {
    display: block !important;
    border: 1px solid #cfd6df;
    border-radius: 3px;
    padding: 7px;
    font-size: 14px;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: 1.2em;
    box-sizing: border-box;
  }

  textarea {
    overflow: hidden !important;
  }
}

/*=========================
   Form rows / groups
   =========================*/
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 1px;
  font-size: 15px;
  margin-top: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 7px;
  border: 1px solid #cfd6df;
  border-radius: 3px;
  font-size: 15px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

/*=========================
   Henkilölohkot
   =========================*/

#henkilot-muutto .henkilo-block,
#henkilot-lahto .henkilo-block,
#henkilot-lapsi .henkilo-block{
  border-bottom: 1px solid #ddd;
  padding: 15px 10px 20px 0px;
  margin-bottom: 10px;
  overflow: hidden;
}

#henkilot-muutto .henkilo-block:last-child,
#henkilot-lahto .henkilo-block:last-child,
#henkilot-lapsi .henkilo-block:last-child{
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.remove-btn {
  float: right;
  margin-top: 10px;
  margin-bottom: 0px;
  background: none;
  border: none;
  color: #244b72;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: 'Source Sans 3', Arial, sans-serif;
}

.remove-btn:hover {
  color: #3f70a1;
}

.remove-btn img {
  vertical-align: middle;
  padding: 0 5px;
  height: 10px;
  filter: brightness(0.7);
  margin-top: -1px;
}

.remove-btn:hover img {
  filter: brightness(1);
}

.lisaa-henkilo {
  display: inline-block;
  background: #3f70a1;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  border: none;
  outline: none;
  font-weight: 600;
  font-family: 'Source Sans 3', Arial, sans-serif;
}

.lisaa-henkilo:hover {
  background: #244b72;
}

.submit-row {
  margin-top: 20px;
}

.submit-row input[type="submit"] {
  background: #3f70a1;
  color: #fff;
  border: none;
  padding: 10px 100px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-weight: 600;
}

.submit-row input[type="submit"]:hover {
  background: #244b72;
}

input[type="date"] {
  font-family: 'Source Sans 3', Arial, sans-serif;
  padding: 4px;
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
}


.info-column--contact-right {
  padding-left: 2rem;
}

.info-columns2 .kuva {
  display: block;
}

/*=========================
   Responsibility table
   =========================*/
.responsibility-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-bottom: 40px;
}

.section-title td {
  background-color: var(--main-blue) !important;
  color: white !important;
  padding: 6px 15px !important;
  font-size: 0.9em !important;
  text-align: left !important;
  font-weight: 700;
  border: none !important;
}

.section-title {
  background-color: var(--main-blue) !important;
}

.responsibility-table th,
.responsibility-table td {
  padding: 4px 15px;
  border: 1px solid #eee;
  text-align: left;
  font-size: 0.8em;
  color: #333;
}

.main-header th {
  background-color: #f0f4f8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8em;
  color: #666;
  padding: 6px 15px !important;
}

.responsibility-table tr:nth-child(even) {
  background-color: #f0f4f8;
}

.responsibility-table .center {
  text-align: center;
  width: 80px;
  font-weight: 700;
  color: var(--main-blue);
}

.sub-section-title td {
  background-color: #d3dde7 !important;
  color: var(--main-blue) !important;
  padding: 5px 15px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.80em !important;
  border-top: 2px solid #ccc !important;
  border-bottom: 1px solid #ccc !important;
}

tr.sub-section-title:nth-child(even) td {
  background-color: #e9ecef !important;
}

/*=========================
   Mobile (<= 900px)
   =========================*/

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 14px;
  margin-left: auto;
  cursor: pointer;
}

.menu-toggle .menu-bars {
  display: inline-block;
  width: 36px;
  height: 24px;
  position: relative;
}

.menu-toggle .menu-bars::before,
.menu-toggle .menu-bars::after,
.menu-toggle .menu-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: #fff;
  border-radius: 2px;
}

.menu-toggle .menu-bars::before { top: 0; }
.menu-toggle .menu-bars span { top: 7px; }
.menu-toggle .menu-bars::after { bottom: 0; }

.menu-toggle .menu-bars::before,
.menu-toggle .menu-bars span,
.menu-toggle .menu-bars::after {
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.menu-toggle.is-open .menu-bars span {
  opacity: 0;
}

.menu-toggle.is-open .menu-bars::before {
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-bars::after {
  transform: rotate(-45deg);
}

.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;
}

@media (max-width: 900px) {
  html,
  body { overflow-x: hidden; }

  .container { 
  flex-direction: column; 
  }

  .doit-form { margin: 15px -10px; }

    .form-card {
    margin-top: 20px;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    padding-bottom: 0;
    max-width: none;
    min-width: 0;
    background-image: none !important;
    background-size: auto !important;
  }

  .logo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
    padding: 3px 20px 3px 15px !important;
    box-sizing: border-box;
  }

  .logo { max-width: 180px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-left: 0;
    margin-right: 6px !important;
    padding: 0 !important;
  }

  .menu-toggle .menu-bars {
    width: 40px !important;
    height: 28px !important;
  }

  .menu-toggle .menu-bars::before { top: -2px !important; }
  .menu-toggle .menu-bars span { top: 9px !important; }
  .menu-toggle .menu-bars::after {
    top: 20px !important;
    bottom: auto !important;
  }

  .menu-toggle.is-open .menu-bars::before,
  .menu-toggle.is-open .menu-bars::after {
    top: 14px !important;
  }

  .navigation {
    display: none;
    padding: 10px 0 16px 0;
  }

  .navigation.is-open {
    display: block;
  }

  .navigation ul,
  .navigation li {
    margin: 0;
    padding: 0;
  }

  .navigation li {
    padding-left: 12px;
  }

  .navigation li a {
    margin-right: 12px;
  }

  .navigation a {
    display: block;
    width: 100%;
    border-radius: 8px;
  }

  .navigation li a:active, .navigation li.active a {
    background-color: white;
    color: var(--main-blue);
  }

  .content {
    padding: 20px 24px 20px 24px !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .subtitle {
    margin-top: 10px;
  }

  .staff-section,
  .contact-grid {
    display: block;
  }

  .staff-section {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 32px;
  }

  .profile {
    display: block;
    gap: 16px;
  }

  .profile-info {
    overflow-wrap: anywhere;
  }

  .staff-section .profile-img {
    display: block;
    margin: 0 auto;
  }

  .staff-section .profile-info {
    text-align: center;
  }

  .staff-section .profile,
  .staff-section .profile-info,
  .contact-grid .profile,
  .contact-grid .profile-info {
    text-align: center;
  }

  .profile img,
  .profile-img {
    margin-left: auto;
    margin-right: auto;
  }

  .logos,
  .logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px !important;
  }

  .logos {
    margin: 12px 0 8px 0;
  }

  .logos p {
    margin: 0;
  }

  .logos img,
  .logo-row img {
    width: 170px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain;
  }

  .image-caption {
    text-align: center;
  }

  .kuva {
    height: auto !important;
    object-fit: contain;
    width: 100% !important;
    max-width: 520px;
  }

  .form-row,
  .two-columns,
  .row {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .form-row > * {
    width: 100% !important;
  }

  input,
  select,
  textarea {
    max-width: 100%;
  }

  .tab-item,
  label.tab-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    flex: 1 1 100%;
  }

  .tab-item .tab-radio {
    flex: 0 0 auto;
    margin-top: 3px;
  }

  .tab-item .tab-text {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
    white-space: normal;
    margin-top: -1px;
    margin-left: -10px;
  }

    .meter-row .tab-text {
    margin-top: 1px;
  }

  /*========= FIX: option-group checkbox-tekstit rivittyvät =========*/
  .custom-tabs,
  .option-group {
    max-width: 100%;
  }

  .custom-tabs .tab-item,
  .option-group .tab-item,
  .custom-tabs label.tab-item,
  .option-group label.tab-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .custom-tabs .tab-text,
  .option-group .tab-text {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-left: 0 !important;
  }
  /*===============================================================*/

  .info-columns,
  .info-columns2 {
    display: flex !important;
    flex-direction: column !important;
  }

  .info-columns2 [style*="display: flex"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
  }

  .info-columns2 {
    align-items: center !important;
    gap: 0px !important;
  }

  .info-columns2 .info-column {
    width: 100% !important;
    max-width: 520px;
    margin: 0 auto !important;
  }

  .info-columns2 .info-column[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0px !important;
  }

  .info-columns {
    gap: 0 !important;
    margin-top: 10px !important;
  }

  .info-column--contact-right {
    padding-left: 0rem;
    text-align: center;
  }

  .tietosuojaseloste {
    text-align: center;
  }

  .instructions-card {
    margin: 0 auto !important;
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    min-width: 85% !important;
  }

.instructions-card.toimisto {
    text-align: center;
  	width: auto !important;
    min-width: 90% !important;
    margin: 0 auto !important;
  }

  .yhteys {
    margin-bottom: 18px !important;
  }

  .image-row,
  .images-row,
  .contact-images {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .button-row,
  .form-actions,
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 14px !important;
  }

  button,
  input[type="submit"],
  input[type="button"],
  .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px !important;
    box-sizing: border-box;
  }

  .submit-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch;
  }

  .submit-row input[type="submit"] {
    padding: 12px 16px !important;
    box-sizing: border-box;
    text-align: center !important;
  }

  .submit-row a,
  .submit-row button,
  .submit-row input[type="submit"],
  .submit-row input[type="button"] {
    white-space: nowrap;
  }

  .btn-print {
    width: 100% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

#henkilot-muutto, #henkilot-lahto, #henkilot-lapsi {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .lisaa-henkilo {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
  }

  .ethics-container {
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -15px;
  }

  .ethics-tab {
    display: block;
    text-align: center;
    margin: 0 30px 0 30px;
  }

  h1 {
    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;
  }

  h2,
  h3 {
    overflow-wrap: anywhere;
  }
}


/*=========================
   Medium screens (<= 1100px)
   =========================*/
@media (max-width: 1100px) {
  .content {
    padding-left: 40px;
  }
}
