/* ── Adepta Tilat — Lomake CSS ── */

#adepta-lomake-wrap,
#adepta-lomake-wrap *,
#adepta-lomake-wrap *::before,
#adepta-lomake-wrap *::after,
.adepta-taytto-widget,
.adepta-taytto-widget * {
  box-sizing: border-box;
}

#adepta-lomake-wrap::after,
.adepta-taytto-widget::after {
  content: ''; display: table; clear: both;
}

#adepta-lomake-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
  font-size: 16px;
  position: relative;
  float: none;
  clear: both;
  color: #1a202c;
}

/* ── Kielivalinta ─────────────────────────────────────── */
.adepta-kieli-valinta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #f7fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.adepta-kieli-otsikko {
  font-size: 13px;
  color: #4a5568;
  font-weight: 600;
  margin-right: 4px;
}
.adepta-kieli-nappi {
  background: none;
  border: 2px solid #cbd5e0;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
  color: #2d3748;
  font-weight: 500;
  transition: all .15s;
}
.adepta-kieli-nappi.active {
  background: #2b6cb0;
  border-color: #2b6cb0;
  color: #fff;
  font-weight: 700;
}
.adepta-kieli-nappi:hover:not(.active) {
  border-color: #2b6cb0;
  color: #2b6cb0;
}

/* ── Täyttöaste-widget ─────────────────────────────────── */
.adepta-taytto-widget {
  max-width: 680px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  border: 1px solid #e2e8f0;
}

.adepta-taytto-varoitus {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.6;
  font-weight: 500;
}
.adepta-taytto-taysi  { background: #fff5f5; border: 2px solid #fc8181; color: #c53030; }
.adepta-taytto-kiire  { background: #fffff0; border: 2px solid #f6e05e; color: #744210; }
.adepta-taytto-varoitus a { color: inherit; font-weight: 700; }

.adepta-taytto-otsikko {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
}
.adepta-taytto-paivitetty { font-size: 12px; color: #718096; font-weight: 400; }

.adepta-taytto-palkki-wrap { margin-bottom: 14px; }
.adepta-taytto-palkki {
  display: flex; height: 32px; border-radius: 8px;
  overflow: hidden; background: #edf2f7;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}
.adepta-taytto-seg { height: 100%; transition: width .6s ease; }
.adepta-seg-vahv  { background: linear-gradient(90deg, #276749, #38a169); }
.adepta-seg-alust { background: linear-gradient(90deg, #c05621, #ed8936); }
.adepta-seg-vapaa { background: #edf2f7; }

.adepta-taytto-selitteet {
  display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px;
}
.adepta-taytto-selite {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; color: #2d3748;
}
.adepta-taytto-piste {
  width: 13px; height: 13px; border-radius: 3px;
  flex-shrink: 0; display: block;
}
.adepta-taytto-lbl { color: #4a5568; }
.adepta-taytto-selite strong { color: #1a202c; }
.adepta-vapaa-korostus { color: #276749 !important; font-size: 15px; }

.adepta-taytto-hint {
  font-size: 14px; color: #4a5568; margin: 0;
  border-top: 1px solid #edf2f7; padding-top: 10px; line-height: 1.5;
}
.adepta-taytto-hint strong { color: #1a202c; }

/* ── Lomake ─────────────────────────────────────────────── */
.adepta-lomake {
  background: #fff; border-radius: 14px;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  overflow: hidden; border: 1px solid #e2e8f0;
}

.adepta-osio { padding: 28px 32px; border-bottom: 1px solid #edf2f7; }
.adepta-osio:last-child { border-bottom: none; }

.adepta-osio h3 {
  margin: 0 0 20px; font-size: 17px; font-weight: 700;
  color: #1a365d; padding-bottom: 12px; border-bottom: 2px solid #ebf8ff;
}

.adepta-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .adepta-grid-2 { grid-template-columns: 1fr; } }

.adepta-kentta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.adepta-kentta label {
  font-size: 13px; font-weight: 700; color: #2d3748; letter-spacing: .01em;
}

.adepta-kentta input,
.adepta-kentta select,
.adepta-kentta textarea {
  padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 8px;
  font-size: 16px; color: #1a202c; background: #fff; font-family: inherit;
  transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box;
}
.adepta-kentta input:focus,
.adepta-kentta select:focus,
.adepta-kentta textarea:focus {
  border-color: #2b6cb0; box-shadow: 0 0 0 3px rgba(43,108,176,.12); outline: none;
}
.adepta-kentta input::placeholder,
.adepta-kentta textarea::placeholder { color: #a0aec0; }

.adepta-req { color: #e53e3e; }

.adepta-hint {
  font-size: 13px; color: #4a5568; margin: 0 0 6px; line-height: 1.6;
}

.adepta-varoitus {
  background: #fff5f5; border: 2px solid #fc8181; border-radius: 8px;
  padding: 12px 16px; font-size: 14px; color: #c53030;
  margin-top: 8px; line-height: 1.6; font-weight: 500;
}

.adepta-info-box {
  background: #f0fff4; border: 1px solid #9ae6b4;
  border-radius: 8px; padding: 12px 16px; font-size: 14px; color: #276749; margin-top: 8px;
}

/* Hinta-arvio */
.adepta-hinta-box {
  background: linear-gradient(135deg, #ebf8ff, #e6fffa);
  border: 2px solid #90cdf4; border-radius: 12px;
  padding: 16px 20px; margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.adepta-hinta-box span:first-child {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #2c5282;
}
#adepta-hinta-naytto { font-size: 32px; font-weight: 800; color: #2b6cb0; white-space: nowrap; }
#adepta-hinta-kuvaus { font-size: 12px; color: #4a5568; }

/* Mittausohje */
#adepta-mittausohje {
  font-size: 13px; color: #2b6cb0;
  background: #ebf8ff; padding: 8px 12px; border-radius: 6px; margin-bottom: 4px;
}
#adepta-pituus-ok { font-size: 13px; color: #276749; font-weight: 600; }

/* Submit */
.adepta-submit-btn {
  margin-top: 8px; width: 100%; padding: 16px;
  background: linear-gradient(135deg, #2b6cb0, #2c5282);
  color: #fff; border: none; border-radius: 10px;
  font-size: 17px; font-weight: 700; cursor: pointer;
  letter-spacing: .02em; box-shadow: 0 4px 14px rgba(43,108,176,.35);
  transition: filter .15s, transform .1s;
}
.adepta-submit-btn:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.adepta-submit-btn:active { transform: translateY(0); }
.adepta-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.adepta-osio .adepta-hint:last-child {
  text-align: center; margin-top: 10px; font-size: 13px;
}
.adepta-osio .adepta-hint a { color: #2b6cb0; font-weight: 600; }

/* Kiitos */
.adepta-kiitos {
  background: #fff; border-radius: 14px;
  padding: 48px 32px; text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.adepta-kiitos h3 { font-size: 24px; color: #1a202c; margin: 0 0 12px; }
.adepta-kiitos p  { color: #4a5568; line-height: 1.7; font-size: 16px; }

/* Hintataulukko */
.adepta-hintataulukko {
  margin-top: 24px; background: #fff; border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06); border: 1px solid #e2e8f0; overflow: hidden;
}
.adepta-hintataulukko summary {
  padding: 16px 22px; cursor: pointer; font-size: 15px;
  font-weight: 600; color: #2d3748; user-select: none;
}
.adepta-hintataulukko table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adepta-hintataulukko th {
  padding: 10px 22px; background: #f7fafc; text-align: left;
  color: #4a5568; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
}
.adepta-hintataulukko td {
  padding: 10px 22px; border-top: 1px solid #edf2f7; color: #2d3748; font-size: 14px;
}
.adepta-hintataulukko td:last-child { text-align: right; font-weight: 600; color: #2b6cb0; }
.adepta-hintataulukko p { padding: 8px 22px 16px; font-size: 13px; color: #4a5568; margin: 0; }

/* MP info */
#adepta-mp-info .adepta-hint {
  font-size: 14px; color: #2d3748;
  background: #f7fafc; padding: 10px 14px;
  border-radius: 8px; border: 1px solid #e2e8f0;
}
