@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

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

:root {
    --primary-dark: #212E4B;
    --accent-red: #BE1622;
    --bg-dark: #1a2233;
    --bg-card: #243046;
    --bg-light: #2d3a52;
    --text-light: #e8eaf0;
    --text-muted: #9aa3b8;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

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

.view {
    display: none;
}

.view.active {
    display: block;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-card {
    max-width: 450px;
    margin: 60px auto 0;
}

.header-link {
    text-decoration: none;
    display: block;
}

.aurelia-header {
    text-align: center;
    margin-bottom: 24px;
}

.aurelia-header.compact {
    margin-bottom: 16px;
}

.logo-image {
    max-width: 280px;
    height: auto;
}

.logo-image.small {
    max-width: 180px;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--accent-red);
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.7;
}

.description {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 28px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.error-message {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
    min-height: 20px;
}

.success-message {
    color: var(--success-green);
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
}

.hubspot-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.button-group.bottom-buttons {
    margin-top: 24px;
    margin-bottom: 0;
}

.btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #d42a36 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(190, 22, 34, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #d42a36 0%, var(--accent-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(190, 22, 34, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: #3a4766;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.page-footer {
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
}

.page-footer a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-footer a:hover {
    color: var(--accent-red);
}

.progress-section {
    margin-bottom: 24px;
}

#progress-text {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), #d42a36);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.question-category {
    text-align: center;
    color: var(--accent-red);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.question-subcategory {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 16px;
    font-style: italic;
}

.question-text {
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
    margin-bottom: 28px;
    min-height: 60px;
    line-height: 1.7;
}

.likert-scale {
    margin-bottom: 28px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.scale-option {
    flex: 1;
    text-align: center;
}

.scale-option input {
    display: none;
}

.option-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border: 2px solid var(--bg-light);
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.scale-option:hover .option-circle {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.scale-option input:checked + .option-circle {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(190, 22, 34, 0.3);
}

.select-container {
    margin-bottom: 28px;
}

.select-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.select-option {
    display: block;
}

.select-option input {
    display: none;
}

.select-option span {
    display: block;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.select-option:hover span {
    border-color: var(--accent-red);
}

.select-option input:checked + span {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.text-container {
    margin-bottom: 28px;
}

.text-container textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.text-container textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.text-container textarea::placeholder {
    color: var(--text-muted);
}

.multiselect-container {
    margin-bottom: 28px;
}

.multiselect-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multiselect-option {
    display: block;
}

.multiselect-option input {
    display: none;
}

.multiselect-option span {
    display: block;
    padding: 14px 20px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.multiselect-option:hover span {
    border-color: var(--accent-red);
}

.multiselect-option input:checked + span {
    background: rgba(190, 22, 34, 0.3);
    border-color: var(--accent-red);
    color: #fff;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.nav-buttons .btn {
    flex: 1;
}

.result-panel {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 28px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-display {
    text-align: center;
    margin-bottom: 24px;
}

.level-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red) 0%, #d42a36 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(190, 22, 34, 0.3);
}

.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.score-item {
    background: var(--bg-card);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.score-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-red);
}

.interpretation-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--accent-red);
}

.interpretation-section p {
    color: var(--text-light);
    line-height: 1.8;
}

.download-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.identity-capture {
    margin-bottom: 20px;
}

.identity-capture .form-group {
    margin-bottom: 12px;
}

.download-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-buttons.disabled {
    opacity: 0.6;
}

.download-buttons .btn {
    flex: 1;
    min-width: 180px;
}

.quantitative-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.snapshot-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.snapshot-item {
    padding: 14px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.snapshot-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.snapshot-item .value {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.feedback-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 12px;
}

.feedback-rating {
    margin-bottom: 16px;
}

.rating-options {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.rating-option {
    cursor: pointer;
}

.rating-option input {
    display: none;
}

.rating-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.rating-option:hover span {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.rating-option input:checked + span {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.feedback-comment {
    margin-bottom: 16px;
}

.feedback-comment textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.feedback-comment textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.feedback-comment textarea::placeholder {
    color: var(--text-muted);
}

.feedback-section .btn {
    display: block;
    width: 100%;
}

@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
    }

    .card {
        padding: 24px 20px;
    }

    h1 {
        font-size: 1.3rem;
    }

    .logo-image {
        max-width: 200px;
    }

    .logo-image.small {
        max-width: 140px;
    }

    .scores-grid {
        grid-template-columns: 1fr;
    }

    .option-circle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn {
        width: 100%;
    }
}
