﻿
/* =========================================================
   Baumhaus · Sign-up page (2026 refresh)
   ========================================================= */

.signup-page,
.signup-page *,
.signup-page *::before,
.signup-page *::after {
    box-sizing: border-box;
}


/* ---------- Intro line ---------- */
.signup-intro {
    margin: 0 0 24px;
    font-size: 15px;
    color: #6b6862;
    text-align: center;
}

/* ---------- Card ---------- */
.signup-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(40, 30, 20, .06);
    padding: 26px 26px 22px;
    margin-bottom: 20px;
}

.signup-card__head {
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #eae6df;
}
.signup-step {
    margin: 0;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #c4552a;
    font-weight: 600;
}
.signup-heading {
    margin: 4px 0 4px;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 600;
    color: #2b2a28;
    line-height: 1.2;
}
.signup-sub {
    margin: 0;
    font-size: 13px;
    color: #6b6862;
    line-height: 1.5;
}

/* ---------- Grid ---------- */
.signup-grid {
    display: grid;
    gap: 14px 16px;
}
.signup-grid--2 {
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .signup-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
.signup-field--full {
    grid-column: 1 / -1;
}

/* ---------- Field ---------- */
.signup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.signup-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b6862;
}
.signup-req {
    color: #c4552a;
    margin-left: 2px;
}

.signup-input {
    display: block;
    width: 100%;
    max-width: 100%;        /* ← ADD THIS LINE */
    font-family: inherit;
    font-size: 15px;
    color: #2b2a28;
    background: #fff;
    border: 1.5px solid #eae6df;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
}
.signup-input:hover  { border-color: #d7d2c9; }
.signup-input:focus  {
    border-color: #c4552a;
    box-shadow: 0 0 0 3px rgba(196, 85, 42, .15);
}
.signup-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #2b2a28 !important;
}
select.signup-input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%236b6862' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 10px;
    padding-right: 36px;
}

.signup-hint {
    font-size: 12px;
    color: #a0a2a5;
}

/* ---------- Validation messages ---------- */
.signup-msg {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    min-height: 14px;
    line-height: 1.4;
}
.signup-msg--ok    { color: #3a8a88; }
.signup-msg--error { color: #c4552a; }
.signup-msg--warn  { color: #e8a13c; }

/* ---------- Student block (with remove) ---------- */
.signup-student {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed #eae6df;
}
.signup-student:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.signup-remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7f4ef;
    color: #6b6862;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.signup-remove:hover {
    background: #fdecea;
    color: #c4552a;
}

/* ---------- Add child button ---------- */
.signup-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #c4552a;
    background: transparent;
    border: 1.5px dashed currentColor;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 14px;
    transition: background .18s, color .18s;
}
.signup-add:hover {
    background: #c4552a;
    color: #fff;
    border-style: solid;
}

/* ---------- Terms list ---------- */
.signup-terms {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.signup-terms li {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #3a3835;
}
.signup-terms li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -1px;
    color: #c4552a;
    font-size: 18px;
    line-height: 1.4;
}

/* ---------- Checkbox ---------- */
.signup-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff8f0;
    border: 1px solid #f0d5b5;
    border-left: 4px solid #e8a13c;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.55;
    color: #2b2a28;
    margin-bottom: 20px;
}
.signup-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: #c4552a;
    margin-top: 2px;
    cursor: pointer;
}
.signup-check a {
    color: #c4552a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------- Consent radios ---------- */
.signup-consent {
    margin-top: 4px;
    padding: 16px;
    background: #f7f4ef;
    border-radius: 12px;
}
.signup-consent__title {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #c4552a;
    font-weight: 600;
}
.signup-consent__text {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #3a3835;
}
.signup-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2b2a28;
    cursor: pointer;
    padding: 6px 0;
}
.signup-radio input {
    width: 18px;
    height: 18px;
    accent-color: #c4552a;
    cursor: pointer;
}

/* ---------- Submit area ---------- */
.signup-submit {
    margin-top: 26px;
    padding-top: 4px;
    text-align: center;
}
.signup-note {
    margin: 0 auto 18px;
    max-width: 560px;
    padding: 14px 20px;
    font-size: 13.5px;
    line-height: 1.55;
    font-weight: 600;
    color: #a8441f;
    background: #fff8f0;
    border: 1px solid #f0d5b5;
    border-left: 4px solid #e8a13c;
    border-radius: 10px;
}
.signup-btn {
    display: inline-block;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: #c4552a;
    border: 1.5px solid #c4552a;
    border-radius: 999px;
    padding: 16px 48px;
    cursor: pointer;
    transition: background .18s, transform .12s, box-shadow .2s;
    box-shadow: 0 6px 16px rgba(196, 85, 42, .25);
    -webkit-tap-highlight-color: transparent;
}
.signup-btn:hover:not(:disabled) {
    background: #a8441f;
    border-color: #a8441f;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(196, 85, 42, .32);
}
.signup-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- Success message (returned via AJAX) ---------- */
.signup-success {
    margin: 20px auto 0;
    max-width: 560px;
    padding: 16px 22px;
    font-size: 14px;
    line-height: 1.55;
    color: #2f6b4a;
    background: #eefaf2;
    border: 1px solid #c9ecd6;
    border-left: 4px solid #4caf7d;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .signup-card      { padding: 22px 18px 18px; }
    .signup-card__head{ padding-bottom: 14px; margin-bottom: 16px; }
    .signup-btn       { width: 100%; padding: 15px 24px; }
    .signup-note      { font-size: 13px; padding: 12px 16px; }
    .signup-terms li  { font-size: 13px; }
}