/* ============================================
   COMITARI - PREMIUM DIAGNOSTIC UI
   Cinematic experience for risk assessment
   Powered by Improved Agency
   ============================================ */

.diagnostic-quiz-container {
    perspective: 1000px;
    min-height: 400px;
}

.diagnostic-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(26, 82, 136, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.diagnostic-card.slide-out {
    opacity: 0;
    transform: translateX(-50px) rotateY(-10deg);
}

.diagnostic-card.slide-in {
    opacity: 0;
    transform: translateX(50px) rotateY(10deg);
    animation: diagEnter 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes diagEnter {
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

/* Premium Header */
.diag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.diag-step-indicator {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    background: rgba(26, 82, 136, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
}

/* Question Styling */
.diag-question-text {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 2.5rem;
    text-align: center;
}

/* Action Buttons */
.diag-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.diag-btn {
    padding: 1.5rem;
    border-radius: 1.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.diag-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.diag-btn span {
    font-weight: 700;
    font-size: 1.1rem;
    color: #475569;
}

.diag-btn:hover {
    border-color: var(--primary-blue);
    background: rgba(26, 82, 136, 0.02);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(26, 82, 136, 0.1);
}

.diag-btn:hover i {
    transform: scale(1.2);
}

.diag-btn.btn-yes:hover {
    border-color: var(--secondary-green);
    color: var(--secondary-green);
}

.diag-btn.btn-no:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Risk Meter (Visual Result) */
.risk-meter-container {
    width: 200px;
    height: 100px;
    position: relative;
    overflow: hidden;
    margin: 0 auto 2rem;
}

.risk-meter-bg {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 20px solid #e2e8f0;
    position: relative;
}

.risk-meter-fill {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 20px solid transparent;
    border-top-color: var(--meter-color, #10b981);
    border-right-color: var(--meter-color, #10b981);
    position: absolute;
    top: -20px;
    left: -20px;
    transform: rotate(calc(-45deg + (var(--score-rotation, 0) * 1deg)));
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Form Styles */
.diag-lead-form {
    text-align: left;
}

.diag-input-group {
    margin-bottom: 1.25rem;
}

.diag-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #64748b;
}

.diag-input {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.diag-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(26, 82, 136, 0.1);
}

/* Success Animation */
.diag-success-check {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .diag-actions {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .diagnostic-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
}