/**
 * Sales Assistant AI — Tester Registration
 *
 * Dedicated styles for the tester registration flow.
 * No external fonts, icons, images, or third-party assets.
 */

.tester-registration {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px;
    box-sizing: border-box;
}

.tester-registration__panel {
    width: 100%;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-sizing: border-box;
    border: 1px solid #17345f;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 18px 50px rgba(15, 35, 66, 0.12);
}

.tester-registration__eyebrow {
    margin: 0 0 6px;
    color: #9a6b21;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.tester-registration__title {
    margin: 0;
    color: #102d55;
    font-size: clamp(
        1.5rem,
        4vw,
        2.1rem
    );
    font-weight: 800;
    line-height: 1.12;
}

.tester-registration__intro {
    margin: 10px 0 0;
    color: #46566d;
    font-size: 0.96rem;
    line-height: 1.5;
}

.tester-registration__form {
    margin-top: 18px;
}

.tester-registration__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tester-registration__label {
    color: #17345f;
    font-size: 0.9rem;
    font-weight: 700;
}

.tester-registration__input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #b9c4d3;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #17253a;
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.tester-registration__input:focus {
    border-color: #17345f;
    box-shadow:
        0 0 0 3px rgba(23, 52, 95, 0.12);
}

.tester-registration__input:disabled {
    cursor: wait;
    opacity: 0.7;
}

.tester-registration__privacy {
    margin: 12px 0 0;
    padding: 10px 14px;
    border-left: 3px solid #9a6b21;
    border-radius: 8px;
    background: #f7f8fa;
    color: #657186;
    font-size: 0.82rem;
    line-height: 1.45;
}

.tester-registration__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    color: #34465d;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
}

.tester-registration__checkbox {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: #17345f;
}

.tester-registration__status {
    min-height: 18px;
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.tester-registration__status--error {
    color: #8d2430;
}

.tester-registration__status--success {
    color: #237344;
}

.tester-registration__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 6px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: #237344;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(35, 115, 68, 0.18);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}

.tester-registration__submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 11px 25px rgba(35, 115, 68, 0.23);
}

.tester-registration__submit:focus-visible {
    outline: 3px solid rgba(35, 115, 68, 0.22);
    outline-offset: 3px;
}

.tester-registration__submit:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

.tester-registration--success {
    text-align: center;
}

.tester-registration--success
.tester-registration__panel {
    padding-top: 32px;
    padding-bottom: 32px;
    border-color: #237344;
}

.tester-registration__success-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    border: 2px solid #237344;
    border-radius: 50%;
    color: #237344;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
}

.tester-registration--success
.tester-registration__intro {
    max-width: 570px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 640px) {
    .tester-registration {
        padding: 10px;
    }

    .tester-registration__panel {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 18px 16px;
        border-radius: 16px;
    }

    .tester-registration__form {
        margin-top: 16px;
    }

    .tester-registration__submit {
        width: 100%;
    }
}