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

html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-yellow: #fbbf24;
    --light-yellow: #fef3c7;
    --dark-blue: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e5e7eb;
    --success: #fbbf24;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light-gray: #f3f4f6;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.main {
    flex: 1;
    padding: 1rem 0;
    min-height: 0;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background: var(--primary-blue);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: var(--primary-blue);
    color: var(--white);
}

.step.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
}

.step.active .step-title {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Form Card */
.form-card {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-section {
    display: none;
}

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

.form-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: var(--white);
    color: var(--text-dark);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background: var(--light-gray);
}

.radio-option input[type="radio"] {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-blue);
}

.radio-text {
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: normal;
}

/* Error styles for validation */
.form-group.error {
    border: 2px solid #ef4444;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #fef2f2;
    animation: shake 0.5s ease-in-out;
}

.form-group.error .form-label {
    color: #dc2626;
    font-weight: 600;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Results */
.results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--light-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.result-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.score-display {
    margin-bottom: 1rem;
}

.score-display #score-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success);
}

.score-suffix {
    font-size: 1.25rem;
    color: var(--text-light);
}

.score-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.score-progress {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0%;
}

.score-comment {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

.risk-display #risk-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--warning);
}

.risk-currency {
    font-size: 1.25rem;
    color: var(--text-light);
}

.risk-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: 1rem;
}

/* Contact Section */
.contact-section {
    background: var(--light-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-section > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.contact-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .stepper {
        flex-direction: column;
        gap: 1rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .results-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
}


/* Recommendations Section */
.recommendations-section {
    background: var(--light-gray);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.recommendations-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.recommendations-intro {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommendation-item {
    background: var(--white);
    border-radius: 0.375rem;
    padding: 1rem;
    border-left: 4px solid var(--accent-yellow);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recommendation-item .recommendation-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.recommendation-item .recommendation-text {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Enhanced Result Cards */
.result-card {
    position: relative;
    overflow: hidden;
}

.result-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.score-card {
    border-top: 4px solid var(--success);
}

.risk-card {
    border-top: 4px solid var(--warning);
}

/* Success message for no recommendations */
.no-recommendations {
    background: var(--white);
    border-radius: 0.375rem;
    padding: 1.5rem;
    text-align: center;
    border-left: 4px solid var(--success);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.no-recommendations .success-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.no-recommendations .success-title {
    font-weight: 600;
    color: var(--success);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.no-recommendations .success-text {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}


/* Testimonial Section */
.testimonial-section {
    margin: 2rem 0;
    padding: 2rem 0;
}

.testimonial-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin: 0;
    position: relative;
}

.testimonial-quote p::before {
    content: '"';
    font-size: 2rem;
    color: #fbbf24;
    position: absolute;
    left: -1rem;
    top: -0.5rem;
}

.testimonial-quote p::after {
    content: '"';
    font-size: 2rem;
    color: #fbbf24;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fbbf24;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.author-title {
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-quote p {
        font-size: 1rem;
    }
    
    .testimonial-quote p::before {
        left: -0.75rem;
        font-size: 1.5rem;
    }
    
    .testimonial-quote p::after {
        font-size: 1.5rem;
    }
    
    .avatar-img {
        width: 50px;
        height: 50px;
    }
}


/* Personalized CTA Section */
.personalized-cta {
    background: #ffffff;
    border: 3px solid #f0c14b; /* Default border color */
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Border colors based on urgency */
.personalized-cta.cta-low-risk {
    border-color: #27ae60; /* Green for low risk */
}

.personalized-cta.cta-medium-risk {
    border-color: #f39c12; /* Orange for medium risk */
}

.personalized-cta.cta-high-risk {
    border-color: #e74c3c; /* Red for high risk */
}

.personalized-cta.cta-urgent {
    border-color: #c0392b; /* Dark red for urgent */
}

.cta-message {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-message h4 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cta-message p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.cta-button-container {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.cta-button {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    letter-spacing: 0.025em;
}

.cta-button:hover {
    background: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.cta-button.cta-low-risk {
    background: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.cta-button.cta-low-risk:hover {
    background: #047857;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.cta-button.cta-medium-risk {
    background: #d97706;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.cta-button.cta-medium-risk:hover {
    background: #b45309;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.cta-button.cta-high-risk {
    background: #dc2626;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.cta-button.cta-high-risk:hover {
    background: #b91c1c;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.cta-button.cta-urgent {
    background: #7c2d12;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(124, 45, 18, 0.3);
}

.cta-button.cta-urgent:hover {
    background: #92400e;
    box-shadow: 0 8px 25px rgba(124, 45, 18, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(124, 45, 18, 0.3), 0 0 0 0 rgba(124, 45, 18, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(124, 45, 18, 0.3), 0 0 0 10px rgba(124, 45, 18, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(124, 45, 18, 0.3), 0 0 0 0 rgba(124, 45, 18, 0);
    }
}

@media (max-width: 768px) {
    .personalized-cta {
        padding: 2rem 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }
    
    .cta-message h4 {
        font-size: 1.5rem;
    }
    
    .cta-message p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-width: 240px;
    }
}

