:root {
  --primary-blue: #253a65;
  --primary-blue-highlight: #3a4f85;
  --accent-color: #0091a5;
  --accent-color-2: #85de81;
  --primary-color: #253a65;
  --background-color: #253a65;
  --text-color-dark: #333;
  --text-color-white: #fff;
  --input-border: #ccc;
  --input-radius: 6px;
}

/* ========= LOMAKE ========= */
.mblt_checkout {
  max-width: 600px;
  border: 1px solid hsl(0, 0%, 91%);
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  margin: 3em auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.85);
  font-family: 'Fredoka', sans-serif;
  color: var(--text-color-dark);
  text-align: center;
}

.mblt_checkout img {margin:auto;}

.mblt_checkout_heading {
  text-align: center;
  margin: 0rem;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.mblt_row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.mblt_two_col .mblt_row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.mblt_row .mblt_form_group {
  flex: 1;
  min-width: 250px;
}

.mblt_form_group {
  margin: 1em 0;
}

.mblt_form_group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 1em;
  text-align: center;
  color: var(--primary-color);
}

.mblt_input {
  background-color: #ffffff;
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: none;
  box-sizing: border-box;
  color: var(--text-color-dark);
  font-size: 15px;
  line-height: 1.5;
  height: 3em;
  outline: none;
  padding: 12px;
  width: 100%;
  font-family: 'Fredoka', sans-serif;
  text-align: center;
}

.mblt_input:focus {
  border-color: var(--primary-blue-highlight);
  box-shadow: 0 0 0.2rem rgba(58, 79, 133, 0.25);
}

/* ========= SALASANANÄYTTÖ ========= */
.mblt_password_toggle {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.mblt_password_toggle button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  margin-top: -9px;
}

.mblt_password_toggle button i {
  margin-right: 5px;
}

.mblt_password_toggle button:hover {
  color: var(--accent-color);
}

/* ========= PAINIKKEET ========= */
.mblt_btn_submit {
  background: var(--primary-blue);
  color: var(--text-color-white);
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.3s ease;
  font-family: 'Fredoka', sans-serif;
}

.mblt_btn_submit:hover {
  background: var(--primary-blue-highlight);
}

/* ========= VIRHEET ========= */
.mblt_error {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 1em;
  border: 2px solid darkred;
  padding: 10px;
  background: darkred;
  border-radius: 6px;
}

.hint {
  display: block;
  font-size: 12px;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* ========= CAPTCHA ========= */
.form-captcha {
  text-align: center;
}

.form-captcha .g-recaptcha {
  display: inline-block;
}

/* ========= LINKIT ========= */
.mblt_login_link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--primary-color);
}

.mblt_login_link a {
  color: var(--accent-color);
  font-weight: bold;
  text-decoration: underline;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 640px) {
  .mblt_row {
    flex-direction: column;
      }

        .mblt_checkout {
    padding: 5px;
        margin: 1.5em auto;
  }
}


@media (max-width: 400px) {
  .form-captcha .g-recaptcha {
    transform: scale(0.65);
    transform-origin: center;
  }
}
