/* ==========================================================================
   GCE TEST PREP PAGE STYLES (ISOLATED CSS)
   ========================================================================== */

:root {
    --tp-primary: #1c7640;
    --tp-primary-hover: #14592f;
    --tp-accent: #e6b535;
    --tp-dark: #1a1a1a;
    --tp-dark-hover: #0d0d0d;
    --tp-text-main: #333333;
    --tp-text-muted: #666666;
    --tp-glass-bg: rgba(255, 255, 255, 0.45);
    --tp-glass-border: rgba(255, 255, 255, 0.4);
    --tp-glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Base Layout & Widescreen Background */
.tp-page-body {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--tp-text-main);
    overflow-x: hidden;
    background-color: #f7f9f8; /* Soft light background base */
}

.tp-page-body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/testprep.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.55; /* Fades the background image */
    filter: blur(3px); /* Soft blur to make text pop */
    z-index: -1;
    pointer-events: none;
}

/* Header & Brand Layout */
.tp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    z-index: 10;
}

.tp-logo img {
    height: 70px;
    object-fit: contain;
}

.tp-portal-link {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--tp-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.tp-portal-link:hover {
    background: var(--tp-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Centered Transition Container */
.tp-main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 20px 20px 20px;
    position: relative;
    z-index: 5;
}

/* Glassmorphism Card Wrapper */
.tp-card-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tp-card {
    background: var(--tp-glass-bg);
    border: 4px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: var(--tp-glass-shadow);
    padding: 36px;
    width: 100%;
    box-sizing: border-box;
    display: none;
    opacity: 0;
    transform: scale(0.95);
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Visible Card state */
.tp-card.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* Card Widths per Step */
.tp-card.tp-welcome-card {
    max-width: 540px;
}

.tp-card.tp-pricing-card {
    max-width: 880px;
    text-align: left;
    align-items: stretch;
}

/* ==========================================================================
   TRANSITION ANIMATIONS (Pull Inward / Pull Outward)
   ========================================================================== */

.anim-out-inward {
    animation: pullInward 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.anim-in-outward {
    animation: pullOutward 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pullInward {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: scale(0.85);
        filter: blur(6px);
    }
}

@keyframes pullOutward {
    0% {
        opacity: 0;
        transform: scale(0.85);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* ==========================================================================
   STEP 1: WELCOME SCREEN REDESIGNED CONTENT
   ========================================================================== */

/* Shorter padding for Welcome Card */
.tp-card.tp-welcome-card {
    max-width: 480px;
    padding: 40px;
}

/* Minimal GCE Welcome Icon Box */
.tp-welcome-icon-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.tp-welcome-icon-box iconify-icon {
    font-size: 34px;
    color: var(--tp-primary);
}

/* Student Avatar Stack (Social Proof Section) */
.tp-avatar-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.tp-avatar-list {
    display: flex;
}

.tp-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    margin-left: -8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tp-avatar-img:first-child {
    margin-left: 0;
}

.tp-avatar-plus {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tp-dark);
    margin-left: -8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.tp-avatar-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tp-text-muted);
}

/* Heading & Text styling */
.tp-welcome-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--tp-dark);
}

.tp-welcome-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--tp-text-muted);
    margin: 0 0 32px;
    max-width: 460px;
}

/* Step Dots indicator */
.tp-dots-indicator {
    display: flex;
    gap: 8px;
    margin: 0 0 35px;
    padding: 0;
    list-style: none;
}

.tp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c7c7cc;
    transition: all 0.3s ease;
}

.tp-dot.active {
    background: #6c5ce7;
}

/* Button Group (Skip Tour / Continue) */
.tp-btn-group {
    display: flex;
    gap: 16px;
    width: 100%;
}

.tp-btn-outline {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #555555;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tp-btn-outline:hover {
    border-color: var(--tp-dark);
    color: var(--tp-dark);
    background: rgba(0, 0, 0, 0.02);
}

.tp-btn-solid {
    flex: 1;
    background: var(--tp-primary);
    color: #ffffff;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgb(28 118 64 / 20%);
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
}

.tp-btn-solid:hover {
    box-shadow: 0 8px 20px rgb(28 118 64 / 30%);
}

/* ==========================================================================
   STEP 2: PRICING PLANS CONTENT
   ========================================================================== */

.tp-pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    width: 100%;
}

.tp-pricing-title-wrap h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--tp-dark);
    margin: 0px;
}

.tp-pricing-title-wrap p {
    font-size: 14.5px;
    color: var(--tp-text-muted);
    margin: 0;
}

/* Back Arrow Link */
.tp-back-link {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--tp-dark);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.tp-back-link:hover {
    background: var(--tp-dark);
    color: #ffffff;
}

/* Pricing Grid */
.tp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* Pricing Card Design - Glass UI */
.tp-price-card {
    background: var(--tp-glass-bg);
    border: 4px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 12px; /* 16px padding inset as in the reference image */
    display: flex;
    flex-direction: column;
    box-shadow: var(--tp-glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp-price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Plan Header Box Container */
.tp-plan-header-card {
    border-radius: 18px;
    padding:24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.tp-free-header {
    background-color: rgb(237 237 237);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.tp-premium-header {
    background: linear-gradient(135deg, rgba(210, 235, 217, 0.75) 0%, rgba(226, 243, 233, 0.75) 50%, rgba(255, 241, 197, 0.75) 100%); /* Translucent Green-Gold GCE brand gradient */
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Typography inside Header Card */
.tp-plan-tag {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--tp-text-main);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.tp-plan-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--tp-dark);
    letter-spacing: -0.03em;
    display: flex;
    align-items: baseline;
    line-height: 1.1;
    margin: 0;
}

.tp-plan-price span.tp-price-cents {
    font-size: 20px;
    font-weight: 700;
}

.tp-plan-price span.tp-price-period {
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-text-muted);
    margin-left: 2px;
}

.tp-plan-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: #444444;
    margin: 0;
}

/* GCE Brand Pill-shaped Buttons */
.tp-plan-btn {
    background: var(--tp-primary); /* Forest Green brand color */
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 50px; /* Pill-shaped button */
    display: block;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(28, 118, 64, 0.15);
}

.tp-plan-btn:hover {
    background: var(--tp-primary-hover); /* Darker green hover state */
    box-shadow: 0 6px 16px rgba(28, 118, 64, 0.3);
    transform: translateY(-1px);
}

.tp-always-free-label {
    text-align: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--tp-primary);
    margin-top: 8px;
}

/* Features List Section (Bottom half of card on white background) */
.tp-features-list {
    margin: 0;
    padding: 24px 12px 12px 12px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-grow: 1;
}

.tp-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--tp-text-main);
}

.tp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--tp-primary);
    color: var(--tp-primary);
    font-size: 10px;
    background: transparent;
    flex-shrink: 0;
}

/* Footer Section */
.tp-footer {
    padding: 24px 60px;
    text-align: center;
    font-size: 12px;
    color: #414141;
    z-index: 10;
    text-shadow: 0 0 #000000;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 900px) {
    .tp-header {
        padding: 20px 24px;
    }
    
    .tp-pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tp-card.tp-pricing-card {
        padding: 32px 24px;
    }

    .tp-pricing-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .tp-back-link {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .tp-card {
        padding: 32px 20px;
    }

    .tp-welcome-title {
        font-size: 24px;
    }

    .tp-welcome-desc {
        font-size: 14px;
    }

    .tp-price-card {
        padding: 32px 20px;
    }

    .tp-pricing-title-wrap h3 {
        font-size: 24px;
    }
}

/* ==========================================================================
   STEP 3: EMAIL FORM STYLES
   ========================================================================== */
.tp-form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.tp-input-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tp-dark);
    margin-bottom: 8px;
}

.tp-input-field {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14.5px;
    color: var(--tp-dark);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.tp-input-field:focus {
    outline: none;
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(28, 118, 64, 0.15);
}

.tp-security-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
}

.tp-security-icon {
    font-size: 18px;
    color: #555555;
    flex-shrink: 0;
}

.tp-security-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: #555555;
    text-align: left;
}

/* ==========================================================================
   STEP 5: QUESTION SCREEN STYLES
   ========================================================================== */
.tp-card.tp-question-card {
    max-width: 820px;
    text-align: left;
    align-items: stretch;
}

.tp-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 28px;
}

.tp-question-counter {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tp-dark);
}

.tp-progress-bar-container {
    background-color: rgba(0, 0, 0, 0.05);
    width: 40%;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 16px;
}

.tp-progress-bar-fill {
    height: 100%;
    background-color: var(--tp-primary); /* Brand green */
    border-radius: 10px;
    transition: width 0.4s ease;
}

.tp-timer-wrap {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--tp-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tp-question-text {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--tp-dark);
    margin: 0 0 24px 0;
}

.tp-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.tp-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tp-option-item:hover {
    border-color: var(--tp-primary);
    background: rgba(28, 118, 64, 0.03);
}

.tp-option-item.selected {
    border-color: var(--tp-primary);
    border-width: 1.5px;
    background: rgba(28, 118, 64, 0.06);
}

.tp-option-letter-box {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-dark);
    flex-shrink: 0;
}

.tp-option-item.selected .tp-option-letter-box {
    background: var(--tp-primary);
    color: #ffffff;
}

.tp-option-text-content {
    flex-grow: 1;
    margin-left: 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--tp-dark);
    text-align: left;
}

.tp-option-radio-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-option-item.selected .tp-option-radio-dot {
    border-color: var(--tp-primary);
    background: var(--tp-primary);
    box-shadow: inset 0 0 0 3px #ffffff;
}

.tp-question-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
}

.tp-question-footer .tp-btn-outline {
    max-width: 140px;
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 13px 24px;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", "Inter", sans-serif !important;
}

.tp-question-footer .tp-btn-solid {
    max-width: 140px;
    flex: 1;
    padding: 13px 24px;
    border-radius: 12px;
}

/* Reusable Form Row Layout */
.tp-form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.tp-form-row .tp-form-group {
    flex: 1;
}

@media (max-width: 580px) {
    .tp-form-row {
        flex-direction: column;
        gap: 0;
    }
}
