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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px 16px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
}

.container {
    width: min(920px, 100%);
    max-width: 100%;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 40px;
    position: relative;
    overflow-x: hidden;
    border: 1px solid #333;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.header {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.header-brand {
    font-size: 16px;
    color: #667eea;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-logo {
    height: 45px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.header-title {
    margin: 8px 0 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.header-step {
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
    padding: 6px 12px;
    background: #2a2a2a;
    border-radius: 20px;
    border: 1px solid #333;
}

.question-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.4s ease-in-out;
}

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

.question-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.question-description {
    margin: 8px 0 0;
    color: #aaa;
    font-size: 16px;
}

.options {
    display: grid;
    gap: 12px;
}

.option-btn {
    text-align: left;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid #333;
    background: #2a2a2a;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.2;
    transition: left 0.3s ease;
}

.option-btn:hover {
    border-color: #667eea;
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.option-btn:hover::before {
    left: 0;
}

.option-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.option-btn.selected::before {
    left: 0;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-secondary {
    background: #2a2a2a;
    color: #ffffff;
    border: 2px solid #333;
    box-shadow: none;
}

.btn-secondary:hover:not(:disabled) {
    border-color: #667eea;
    background: #333;
}

.score-display {
    font-size: 13px;
    color: #aaa;
}

.score-value {
    font-weight: 700;
    color: #ffffff;
}

.results-section {
    display: grid;
    gap: 12px;
}

.result-card {
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.result-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.result-score {
    font-weight: 800;
    font-size: 18px;
}

.result-summary {
    margin: 16px 0 0;
    color: #ddd;
    font-size: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.recommendations-title {
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 10px;
    color: #ffffff;
}

.recommendations-list {
    margin: 0;
    padding-left: 18px;
    color: #ccc;
}

.recommendations-list li {
    margin: 6px 0;
}

.lead-form-card {
    padding: 32px;
    border-radius: 20px;
    border: 2px solid #333;
    background: #2a2a2a;
    margin-top: 24px;
    animation: fadeIn 0.6s ease-in-out;
}

.lead-form-title {
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.lead-form-subtitle {
    color: #aaa;
    font-size: 13px;
    margin-top: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.form-group {
    display: grid;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    color: #ddd;
    font-weight: 600;
}

.form-input {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #333;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #666;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #222;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.alert {
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 12px;
}

.alert-error {
    border: 1px solid #ffd1d1;
    background: #fff5f5;
    color: #7a1414;
}

.alert-success {
    border: 1px solid #c9f3d0;
    background: #f2fff5;
    color: #0b5f1a;
}

.hidden {
    display: none;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out forwards;
}

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

.fade-in {
    animation: fadeIn 0.4s ease-in-out forwards;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: 12px 8px;
    }

    .container {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .header-title {
        font-size: 22px;
        margin-top: 4px;
    }

    .header-step {
        font-size: 12px;
        padding: 4px 10px;
        align-self: flex-end;
    }

    .header-logo {
        height: 35px;
        margin-bottom: 8px;
    }

    .question-title {
        font-size: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .question-description {
        font-size: 14px;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .navigation {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
        padding-top: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 100px;
    }

    .score-display {
        font-size: 12px;
        order: -1;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }

    .result-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .result-title {
        font-size: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        flex: 1;
        min-width: 0;
    }

    .result-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .result-title {
        flex: 1 1 100%;
    }

    .result-score {
        flex: 0 0 auto;
    }

    .result-summary {
        font-size: 16px;
        margin-top: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .recommendations-title {
        font-size: 16px;
        margin-top: 16px;
    }

    .recommendations-list {
        font-size: 14px;
    }

    .lead-form-card {
        padding: 20px 16px;
        border-radius: 16px;
        margin-top: 16px;
    }

    .lead-form-title {
        font-size: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }

    .lead-form-subtitle {
        font-size: 12px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .form-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px 4px;
    }

    .container {
        padding: 16px 12px;
    }

    .header-title {
        font-size: 20px;
    }

    .question-title {
        font-size: 18px;
    }

    .result-title {
        font-size: 18px;
    }

    .result-summary {
        font-size: 15px;
    }

    .lead-form-title {
        font-size: 16px;
    }

    .option-btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
