/* 
   website-conversion-score.css
   Scoped styles for the conversion score tool — Quiet Grid Design System
*/

/* Hero section adjustments */
.tool-hero {
    min-height: 40vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}
.tool-hero::before {
    display: none;
}

/* Tool Container */
.tool-container {
    max-width: 800px;
    margin: 0 auto;
}

.tool-card {
    padding: 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 10%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

/* Questionnaire */
.question-block {
    display: none;
}

.question-block.active {
    display: block;
    animation: slideInRight 0.3s ease;
}

.question-block h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--ink);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    color: var(--ink);
}

.option-label:hover {
    background: var(--surface);
    border-color: var(--ink);
}

.option-label input[type="radio"] {
    margin-right: 0.75rem;
    accent-color: var(--accent);
}

.option-label:has(input[type="radio"]:checked),
.option-label.selected {
    background: var(--surface);
    border-color: var(--accent);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* Utilities inside form */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.pt-0 {
    padding-top: 0;
}

/* Results Screen */
.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--ink);
    box-shadow: none;
    position: relative;
}

.score-circle::after {
    content: '/100';
    position: absolute;
    bottom: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--muted);
    font-weight: 400;
}

.result-header h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.result-header p {
    font-size: 1.05rem;
    max-width: 600px;
    margin-inline: auto;
    color: var(--muted);
}

.recommendations-container {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
}

.recommendations-container h3 {
    margin-bottom: 1.25rem;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.recommendations-container li {
    margin-bottom: 0.875rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
}
.recommendations-container li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Loading Spinner */
.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-left-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .tool-card {
        padding: 1.5rem;
    }
    
    .navigation-buttons {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }
    
    .navigation-buttons .btn {
        width: 100%;
    }
}
