.stamford-test-online-wrap,
.stamford-test-online-wrap * {
    box-sizing: border-box;
}

.stamford-test-online-wrap {
    width: 100%;
    margin: 0 auto;
}

.stamford-access-box {
    width: 100%;
    border: 1px solid #e6e8ef;
    border-radius: 18px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.stamford-access-box__intro {
    text-align: center;
    margin-bottom: 26px;
}

.stamford-access-box__intro h3 {
    margin: 0 0 8px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    color: #102033;
}

.stamford-access-box__intro p {
    margin: 0;
    color: #5d6a7a;
    font-size: 16px;
}

.stamford-access-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.stamford-access-card {
    border: 1px solid #edf0f5;
    border-radius: 16px;
    padding: 24px;
    background: #f8fafc;
}

.stamford-access-card h4 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #102033;
}

.stamford-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stamford-form label {
    font-weight: 700;
    font-size: 14px;
    color: #25364a;
}

.stamford-form input[type="text"],
.stamford-form input[type="email"],
.stamford-form input[type="password"],
.stamford-form input[type="tel"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    padding: 10px 13px;
    background: #ffffff;
    color: #102033;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.stamford-form input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.stamford-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 8px;
    font-weight: 500 !important;
    color: #465569 !important;
}

.stamford-check input {
    width: auto;
}

.stamford-form button,
.stamford-logout-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    background: #0f3f8f;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.stamford-form-help {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5d6a7a;
}

.stamford-form button:hover,
.stamford-logout-btn:hover {
    transform: translateY(-1px);
    background: #092f6f;
    box-shadow: 0 12px 24px rgba(15, 63, 143, .22);
}

.stamford-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #e6e8ef;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.stamford-test-header__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #102033;
}

.stamford-test-header__text span {
    color: #5d6a7a;
    font-size: 14px;
}

.stamford-qsm-content {
    position: relative;
    width: 100%;
}

.stamford-notice {
    margin-bottom: 18px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.stamford-notice--error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.stamford-notice--success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 768px) {
    .stamford-access-box {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .stamford-access-grid {
        grid-template-columns: 1fr;
    }

    .stamford-access-card {
        padding: 20px;
    }

    .stamford-test-header {
        align-items: stretch;
        flex-direction: column;
    }

    .stamford-logout-btn {
        width: 100%;
    }
}
