* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #efedf8;
    color: #222;
}

button {
    font-family: inherit;
    cursor: pointer;
}

a {
    color: #5631b5;
    text-decoration: none;
    font-weight: 600;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

.main-view {
    display: none;
    min-height: calc(100vh - 90px);
    padding: 36px 6%;
}

.main-view.active-view {
    display: block;
}


/* Login */

.login-wrapper {
    min-height: 100vh;
    background: #efedf8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    width: 760px;
    min-height: 820px;
    background: white;
    margin-top: 0;
    padding: 85px 70px 40px;
    text-align: center;
}

.pearson-logo {
    color: white;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.login-logo {
    color: #120052;
    font-size: 48px;
    margin-bottom: 60px;
}

.login-card h1 {
    color: #120052;
    font-size: 34px;
    font-weight: 500;
}

.login-subtitle {
    font-size: 18px;
    margin-bottom: 35px;
}

.form-group {
    position: relative;
    margin-bottom: 34px;
    text-align: left;
}

.form-group label {
    position: absolute;
    top: -12px;
    left: 18px;
    background: white;
    padding: 0 10px;
    font-size: 20px;
    color: #555;
}

.form-group input {
    width: 100%;
    height: 70px;
    border: 2px solid #120052;
    border-radius: 4px;
    font-size: 28px;
    padding: 0 20px;
    outline: none;
}

.password-group input {
    border: 1px solid #999;
}

.eye-icon {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    color: #666;
}

.login-btn {
    width: 380px;
    height: 68px;
    border: none;
    border-radius: 40px;
    background: #5631b5;
    color: white;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
}

.login-options {
    display: flex;
    justify-content: center;
    gap: 35px;
    align-items: center;
    font-size: 14px;
}

.login-options input {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 8px;
}

.signup-divider {
    width: 380px;
    margin: 36px auto 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #5631b5;
    font-size: 18px;
}

.signup-divider span {
    height: 1px;
    flex: 1;
    background: #ccc;
}

.signup-btn {
    width: 380px;
    height: 68px;
    border: 4px solid #5631b5;
    border-radius: 40px;
    background: white;
    color: #120052;
    font-size: 30px;
    font-weight: 700;
}

.error-message {
    color: red;
    margin-top: 20px;
    font-weight: 700;
}

footer {
    text-align: center;
    font-size: 14px;
    margin-top: 24px;
    margin-bottom: 20px;
}


/* Top Nav */

.top-nav {
    height: 86px;
    background: #120052;
    display: flex;
    align-items: center;
    padding: 0 6%;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.top-nav nav {
    display: flex;
    gap: 45px;
    height: 100%;
    align-items: center;
}

.top-nav nav button {
    position: relative;
    height: 100%;
    background: none;
    border: none;
    color: #d8d1ff;
    font-size: 18px;
    font-weight: 700;
}

.top-nav nav button.active-nav {
    color: white;
}

.top-nav nav button.active-nav::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 6px;
    width: 100%;
    background: #ffd000;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
    color: white;
}

.cart-icon {
    font-size: 28px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: #120052;
    border-radius: 35px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 20px;
}


/* Home */

.page-title {
    text-align: center;
    font-size: 34px;
    color: #120052;
    font-weight: 400;
    margin-bottom: 30px;
}

.smart-banner {
    background: #55d3d0;
    color: #120052;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    padding: 20px;
    margin-bottom: 28px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.home-card {
    background: white;
    border: 2px solid #beb6ff;
    border-radius: 8px;
    padding: 28px;
    min-height: 300px;
}

.home-card h2 {
    color: #120052;
    font-size: 30px;
    margin-bottom: 12px;
}

.center-card {
    text-align: center;
}

.center-card h3 {
    color: #003c65;
    font-size: 24px;
    margin: 8px 0;
}

.yellow-btn {
    background: #ffc400;
    border: none;
    border-radius: 30px;
    padding: 12px 42px;
    font-size: 18px;
    font-weight: 800;
    color: #120052;
    margin-top: 25px;
}

.format-row {
    margin-top: 22px;
}

.format-row strong {
    font-size: 22px;
    margin-right: 20px;
}

.format-row p {
    margin-top: 6px;
}

.globe {
    font-size: 120px;
    margin-top: 30px;
}

.prepare-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.circle-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ede8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}


/* Activity */

.activity-header {
    text-align: center;
}

.activity-header h1 {
    color: #120052;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 12px;
}

.activity-header p {
    font-size: 18px;
}

.tabs {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 55px;
}

.tab {
    border: none;
    background: none;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    padding: 12px 36px;
    border-bottom: 5px solid transparent;
}

.tab.active-tab {
    border-bottom-color: #ffd000;
}

.tab-section {
    display: none;
}

.tab-section.active-section {
    display: block;
}

.section-title {
    text-align: center;
    color: #120052;
    font-size: 32px;
    font-weight: 400;
    margin-top: 62px;
    margin-bottom: 20px;
}

.upcoming-card {
    width: 620px;
    margin: 0 auto;
    background: white;
    border: 2px solid #beb6ff;
    border-radius: 8px;
    padding: 22px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}

.previous-title {
    margin-top: 60px;
}

.previous-list {
    width: 620px;
    margin: 0 auto 40px;
}

.previous-card {
    background: white;
    border: 2px solid #beb6ff;
    border-radius: 8px;
    margin-bottom: 22px;
    overflow: hidden;
}

.previous-card-body {
    text-align: center;
    padding: 38px 30px 42px;
}

.previous-card-body h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #333;
}

.previous-card-body .date {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 18px;
}

.previous-card-body .reg {
    font-size: 19px;
    margin-bottom: 18px;
}

.previous-card-body .location {
    font-size: 18px;
    line-height: 1.35;
}

.previous-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #e5e5e5;
}

.previous-card-actions button {
    height: 45px;
    background: white;
    border: none;
    color: #5631b5;
    font-size: 18px;
    font-weight: 800;
}

.previous-card-actions button:first-child {
    border-right: 1px solid #e5e5e5;
}

.previous-card-actions button:hover {
    background: #f3f0ff;
}


/* Order History */

.order-title {
    margin-top: 50px;
}

.payment-box {
    width: 600px;
    background: white;
    border: 2px solid #beb6ff;
    border-radius: 8px;
    margin: 0 auto 40px;
    padding: 24px;
    text-align: center;
}

.payment-box p {
    font-size: 20px;
    margin-bottom: 20px;
}

.payment-box button {
    background: #5631b5;
    color: white;
    border: none;
    border-radius: 28px;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 800;
}

.order-table {
    width: 88%;
    max-width: 1040px;
    margin: 0 auto;
}

.order-head {
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    padding: 0 70px 12px;
    font-weight: 800;
    color: #333;
}

.order-row {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 2fr 2fr;
    align-items: center;
    background: white;
    border: 2px solid #beb6ff;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 14px 24px 14px 75px;
    color: #120052;
    font-size: 18px;
}

.order-row span:nth-child(2) {
    font-size: 28px;
}

.arrow {
    position: absolute;
    left: 18px;
    width: 42px;
    height: 42px;
    border: 3px solid #5631b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Score Page */

.score-view {
    padding: 0 5% 40px;
}

.score-top {
    display: grid;
    grid-template-columns: 55px 1fr 1fr;
    gap: 18px;
    align-items: start;
    padding: 28px 0 45px;
}

.back-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #5631b5;
    color: #5631b5;
    background: transparent;
    font-size: 28px;
}

.score-top p {
    font-size: 18px;
}

.score-top h1 {
    font-size: 28px;
    font-weight: 500;
    color: #333;
}

.share-area {
    text-align: left;
}

.share-btn {
    width: 100%;
    height: 64px;
    border: none;
    border-radius: 40px;
    background: #5631b5;
    color: white;
    font-size: 28px;
    font-weight: 800;
}

.share-area p {
    margin-top: 18px;
    font-size: 18px;
}

.score-report {
    background: white;
    width: 94%;
    margin: 0 auto;
    padding: 16px 60px 30px;
}

.report-banner {
    background: #16b2a5;
    padding: 22px 28px;
    margin-bottom: 28px;
}

.report-banner h1 {
    font-size: 40px;
    font-weight: 400;
}

.report-banner p {
    font-size: 20px;
    margin-top: 6px;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.report-box {
    border: 1px solid #ddd;
    min-height: 260px;
}

.report-box h2 {
    font-size: 26px;
    font-weight: 400;
    padding: 20px 24px;
    border-bottom: 1px solid #ddd;
}

.overview-content {
    display: grid;
    grid-template-columns: 130px 1fr 100px;
    gap: 22px;
    align-items: center;
    padding: 30px 24px;
}

.candidate-photo {

    width:120px;
    height:145px;

    border:1px solid #999;

    overflow:hidden;

}


.candidate-photo img {

    width:100%;
    height:100%;

    object-fit:cover;

}

.overview-content h3 {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 12px;
}

.overview-content p {
    font-size: 16px;
    margin-bottom: 8px;
}

.overall-badge {
    width: 80px;
    height: 92px;
    background: #b00087;
    color: white;
    border-radius: 0 0 35px 35px;
    text-align: center;
    padding-top: 8px;
}

.overall-badge small {
    display: block;
    font-size: 11px;
}

.overall-badge strong {
    font-size: 48px;
}

.centre-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #ddd;
}

.centre-info div {
    padding: 30px 24px;
    border-right: 1px solid #ddd;
}

.centre-info p {
    font-size: 18px;
    margin-bottom: 8px;
}

.skill-circles {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding-top: 42px;
}

.skill {
    text-align: center;
}

.skill span {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid #06395f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.skill p {
    color: #777;
    font-size: 20px;
}

.reading span {
    border-color: #d7e600;
}

.speaking span {
    border-color: #666;
}

.writing span {
    border-color: #b00087;
}

.bottom-report {
    margin-top: 28px;
}

.bar-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: 20px;
    margin: 14px 40px;
    font-size: 18px;
}

.bar {
    height: 28px;
}

.listening-bar {
    width: 67%;
    background: #06395f;
}

.reading-bar {
    width: 66%;
    background: #d7e600;
}

.speaking-bar {
    width: 81%;
    background: #666;
}

.writing-bar {
    width: 67%;
    background: #b00087;
}

.candidate-info p {
    font-size: 18px;
    margin: 16px 30px;
}

.view-pdf-btn {
    display: block;
    margin: 28px auto 0;
    border: none;
    border-radius: 35px;
    background: #5631b5;
    color: white;
    font-size: 28px;
    font-weight: 800;
    padding: 18px 42px;
}

.skills-profile {
    width: 94%;
    margin: 28px auto 40px;
    background: white;
    border: 2px solid #beb6ff;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
}

.skills-profile button {
    background: #5631b5;
    color: white;
    border: none;
    border-radius: 36px;
    font-size: 28px;
    font-weight: 800;
    padding: 18px 40px;
}

.app-footer {
    text-align: center;
    font-size: 14px;
    padding-bottom: 20px;
}


/* Responsive */

@media (max-width: 900px) {
    .login-card {
        width: 100%;
        padding: 60px 30px;
    }

    .home-grid,
    .report-grid,
    .score-top {
        grid-template-columns: 1fr;
    }

    .previous-list,
    .upcoming-card,
    .payment-box {
        width: 95%;
    }

    .top-nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }

    .top-nav nav {
        gap: 20px;
    }

    .skill-circles {
        flex-wrap: wrap;
    }

    .order-head,
    .order-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}