/* =============================================================================
   LEARNING ASSESSMENT - CSS
   Extends the main style.css with assessment-specific styles
============================================================================= */

/* =============================================================================
   HERO SECTION
============================================================================= */
.assessment-hero {
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.hero-badge i {
    color: #FFD700;
}

.assessment-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.hero-note {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 1rem;
}

/* =============================================================================
   PRICING DISPLAY
============================================================================= */
.pricing-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 1.5rem 0;
}

.price-original {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: line-through;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

/* =============================================================================
   DIFFERENCE GRID
============================================================================= */
.section-intro {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.difference-item {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.difference-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.difference-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.difference-item p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* =============================================================================
   DIMENSIONS GRID
============================================================================= */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dimension-card {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    border-left: 4px solid #FFD700;
}

.dimension-number {
    position: absolute;
    top: -10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000;
}

.dimension-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: #000;
}

.dimension-card p {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* =============================================================================
   WHAT'S INCLUDED
============================================================================= */
.whats-included .included-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.included-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.included-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.included-category li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8);
}

.included-category li i {
    color: #4CAF50;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================================================
   STEPS TIMELINE
============================================================================= */
.steps-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-left: 3rem;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: linear-gradient(to bottom, #FFD700, rgba(255, 215, 0, 0.3));
    border-radius: 2px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.step-number {
    position: absolute;
    left: -3rem;
    width: 40px;
    height: 40px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    z-index: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: #000;
}

.step-content p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* =============================================================================
   FINAL CTA
============================================================================= */
.final-cta {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.terms-note {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 1.5rem;
}

/* =============================================================================
   MODAL
============================================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.modal-content p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =============================================================================
   ASSESSMENT PAGE - QUESTION INTERFACE
============================================================================= */
.assessment-container {
    max-width: 700px;
    margin: 0 auto;
}

.assessment-header {
    margin-bottom: 1rem;
}

.assessment-progress {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #000;
}

.progress-percentage {
    font-weight: 700;
    color: #000;
}

.assessment-progress-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.assessment-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.dimension-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Question Card */
.question-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-number {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.question-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Multiple Choice Options */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.option-button:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(4px);
}

.option-button.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
}

.option-letter {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
    margin-right: 1rem;
}

.option-button.selected .option-letter {
    background: #FFD700;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: #000;
    line-height: 1.4;
}

/* Written Response */
.written-response-container {
    margin-top: 1rem;
}

.written-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.written-textarea:focus {
    outline: none;
    border-color: #FFD700;
}

.char-count {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

.char-count.valid {
    color: #4CAF50;
}

.char-count.invalid {
    color: #f44336;
}

/* Navigation Buttons */
.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn-prev {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
}

.nav-btn-prev:hover {
    background: rgba(0, 0, 0, 0.08);
}

.nav-btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.nav-btn-next {
    background: #FFD700;
    border: none;
    color: #000;
}

.nav-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.nav-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Save Indicator */
.save-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
}

.save-indicator.saving {
    color: #2196F3;
}

.save-indicator.saved {
    color: #4CAF50;
}

.save-indicator i {
    font-size: 1rem;
}

/* =============================================================================
   PAYMENT PAGE
============================================================================= */
.payment-container {
    max-width: 500px;
    margin: 0 auto;
}

.payment-summary {
    text-align: center;
    margin-bottom: 1.5rem;
}

.completion-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 1rem;
}

.completion-badge i {
    color: #4CAF50;
}

.payment-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.payment-summary p {
    color: rgba(0, 0, 0, 0.7);
}

.payment-price-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-price-box .price-label {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0.5rem;
}

.payment-price-box .price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
    line-height: 1;
}

.payment-price-box .price-note {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 0.5rem;
}

.payment-features {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.payment-features h4 {
    font-size: 0.9rem;
    color: #000;
    margin-bottom: 0.75rem;
}

.payment-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.8);
}

.payment-features li i {
    color: #4CAF50;
}

.pay-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

.payment-security i {
    color: #4CAF50;
}

.payment-terms {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   RESULTS PAGE
============================================================================= */
.results-container {
    max-width: 800px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 0;
}

.results-header .header-banner {
    width: 100%;
    margin-bottom: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.results-header .banner-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.results-header .header-content {
    padding: 1.5rem 2rem 2rem;
}

.results-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000;
    font-weight: 700;
}

.results-header p {
    color: rgba(0, 0, 0, 0.7);
}

.results-header .header-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.8);
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
}

.results-header .completion-date {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.results-header .results-actions {
    margin-top: 1rem;
}

/* Fade-in animation */
.fade-in-section {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for header banner */
@media (max-width: 768px) {
    .results-header .header-content {
        padding: 1rem 1.25rem 1.5rem;
    }
    
    .results-header h1 {
        font-size: 1.5rem;
    }
    
    .results-header .header-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .results-header .banner-image {
        max-height: 200px;
    }
}

.download-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.download-section h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.download-section p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Report Preview Sections */
.report-section {
    margin-bottom: 1.5rem;
}

.report-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #000;
}

.report-section h3 i {
    color: #FFD700;
}

.profile-summary {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

.profile-summary p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.strength-item, .growth-item {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-item i {
    color: #4CAF50;
    font-size: 1.25rem;
}

.growth-item i {
    color: #2196F3;
    font-size: 1.25rem;
}

.strength-item span, .growth-item span {
    font-size: 0.95rem;
    color: #000;
}

.dimension-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.dimension-profile {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid #FFD700;
}

.dimension-profile h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.dimension-profile .profile-descriptor {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.dimension-profile p {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Loading States */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
}

/* Error States */
.error-box {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.error-box i {
    font-size: 2.5rem;
    color: #f44336;
    margin-bottom: 0.75rem;
}

.error-box h3 {
    color: #c62828;
    margin-bottom: 0.5rem;
}

.error-box p {
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
}

/* =============================================================================
   RESPONSIVE ADJUSTMENTS
============================================================================= */
@media (max-width: 768px) {
    .assessment-hero {
        padding: 1.5rem 1rem;
    }
    
    .assessment-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .price-current {
        font-size: 2rem;
    }
    
    .steps-timeline {
        padding-left: 2.5rem;
    }
    
    .step-number {
        left: -2.5rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .option-button {
        padding: 0.875rem 1rem;
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .assessment-hero h1 {
        font-size: 1.5rem;
    }
    
    .price-current {
        font-size: 1.75rem;
    }
    
    .difference-grid {
        grid-template-columns: 1fr;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
    }
    
    .whats-included .included-list {
        grid-template-columns: 1fr;
    }
    
    .question-container {
        padding: 1rem;
    }
    
    .option-letter {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.8rem;
        margin-right: 0.75rem;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
    
    .dimension-profiles {
        grid-template-columns: 1fr;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
}
