.ecg-assessment-container {
    max-width: 1136px;
    margin: 0 auto;
    padding: 20px;
    width: 100%; 
    font-family: "Red Hat Display", Sans-serif;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; */
}

.ecg-question {
    display: none;
    margin-bottom: 30px;
}

.ecg-question:first-child {
    display: block;
}

.ecg-question h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.ecg-question h2 {
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.ecg-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ecg-options label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* .ecg-options label:hover {
    border-color: #4CAF50;
    background-color: #f5f5f5;
}

.ecg-options input[type="radio"] {
    margin-right: 15px;
}

.ecg-options input[type="radio"]:checked ~ .box_item span {
    color: #4CAF50;
    font-weight: 500;
}

.ecg-options label.active {
    border-color: #4CAF50;
    background-color: #f8fff9;
}

.ecg-options label.active .box_item span {
    color: #4CAF50;
    font-weight: 500;
} */

.ecg-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.ecg-prev,
.ecg-next,
.ecg-submit,
.ecg-restart {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.ecg-prev {
    background-color: #f5f5f5;
    color: #333;
}

.ecg-next,
.ecg-submit {
    background-color: #4CAF50;
    color: white;
}

.ecg-restart {
    background-color: #2196F3;
    color: white;
    margin-top: 20px;
}

.ecg-prev:hover,
.ecg-next:hover,
.ecg-submit:hover,
.ecg-restart:hover {
    opacity: 0.9;
}

.ecg-results {
    text-align: center;
}

.ecg-wheel-container {
    max-width: 550px;
    margin: 30px auto -40px;
    /* padding: 25px; */
    position: relative;
} 

.ecg-wheel {
    width: 100%;
    height: auto;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* animation: fadeInScale 0.8s ease-out; */
    /* transform: scale(1.26); */
    /* filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.06)); */
}

/* @keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.85) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
} */

@keyframes wheelSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(1080deg); /* 3 full rotations */
    }
}

.ecg-wheel-spinning .spinning-sections {
    animation: wheelSpin 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    transform-origin: center center;
}

@keyframes fadeInResults {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecg-wheel-section {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center;
}

.ecg-wheel-section:hover {
    filter: brightness(1.1) drop-shadow(0 3px 12px rgba(0,0,0,0.15)) !important;
    /* transform: scale(1.02); */
}

.ecg-wheel-section:active {
    /* transform: scale(0.98); */
    transition: all 0.1s ease;
}

/* .ecg-pointer {
    animation: pointerAppear 0.6s ease-out 0.4s both;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.12));
}

@keyframes pointerAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
} */

.ecg-wheel-label {
    font-family: "Red Hat Display", Sans-serif;
    font-size: 13px;
    fill: #374151;
    text-anchor: middle;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
}

.ecg-wheel-summary {
    animation: slideInUp 0.6s ease-out 0.2s both;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecg-legend {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    animation: slideInUp 0.5s ease-out 0.3s both;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecg-legend > div {
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ecg-legend > div:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    border-color: #4CAF50;
}

/* Tooltip styles */
.ecg-tooltip {
    font-family: "Red Hat Display", Sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    font-weight: 500;
}

/* Enhanced results section */
.ecg-results {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecg-score {
    /* font-size: 1.6em;
    color: #1f2937;
    margin: 25px 0;
    text-align: center; */
    animation: slideInUp 0.6s ease-out 0.1s both;
    /* font-weight: 700; */
}

/* .ecg-recommendation {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
    animation: slideInUp 0.6s ease-out 0.3s both;
} */
.ecg-recommendation h4{font-size: 28px;color: #1D1D52;font-weight: bold;margin:0px;padding:0px;}

.ecg-recommendation h3 {
    color: #0292DF;
    font-size: 24px;
    font-weight: bold;
}

/* Interactive elements */
.ecg-restart {
    background: linear-gradient(90deg, #38C25B 0%, #0292DF 100%);
    color: white;
    margin-top: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3); */
    animation: slideInUp 0.6s ease-out 0.5s both;
    border-radius: 25px;
    padding: 11px 28px;
    font-weight: bold;
    font-size: 20px;
    width: 280px;
    max-width: 100%;
}
/* Rectangle 2 copy 10 */
 


.ecg-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    background: linear-gradient(90deg, #0292DF 0%, #38C25B 100%);
}

.ecg-restart:active {
    transform: translateY(-1px);
}

/* Loading animation for wheel generation */
.ecg-wheel-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    flex-direction: column;
}

.ecg-wheel-loading::before {
    content: '';
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    margin-bottom: 20px;
}

.ecg-wheel-loading::after {
    content: 'Generating your ECG wheel...';
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Summary box specific styling */
.ecg-wheel-summary h4 {
    font-family:"Red Hat Display", Sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Navigation buttons enhancement */
.ecg-prev,
.ecg-next,
.ecg-submit {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ecg-prev:hover,
.ecg-next:hover,
.ecg-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ecg_assessment {
    background-color: #FFF;
    background-image: url('../images/green_top.png'), url('../images/green_bottom.png');
    /* background-size: 100% 100%; */
    background-position: top left, bottom right ;
    background-repeat: no-repeat;
    padding-top: 80px;
    padding-bottom: 80px;
}
.ecg_assessment .heading_box{text-align: center;margin-bottom: 60px;}
.ecg_assessment .heading_box h3{color: #38C25B; font-size: 25px; font-weight: bold;}
.ecg_assessment .heading_box h2{color: #1D1D52; font-size: 32px; font-weight: bold;}
.ecg_assessment .ecg-options > label {
	flex: calc(50% - 20px);
	max-width: calc(50% - 20px);
	border: 1.5px solid #1D1D52;
	border-radius: 50px;
}
.ecg_assessment .ecg-options > label.active {border-color: #38C25B;}
.ecg_assessment .ecg-options {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
    gap: 40px;
}
.ecg_assessment .ecg-options > label b {
	width: 100%;
	float: left;
	font-size: 22px;
	color: #1D1D52;
	font-weight: bold;
	margin-bottom: 3px;
}
.ecg_assessment .ecg-options > label span {font-size: 16px;color: #1D1D52;font-weight: 500;}

.ecg_assessment .ecg-options > label em {
    width: 26px;
    height: 26px;
    border: 2px solid #1D1D52;
    margin-right: 20px;
    border-radius: 50%;
    flex: 0 0 26px;
    position: relative;
}
.ecg_assessment .ecg-options > label input[type="radio"] {
    display: none;
}
.ecg_assessment .ecg-options > label input[type="radio"]:checked + em:after {
    position: absolute;
    content: "";
    background-color: #38C25B;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%; 
    left: 50%;
} 
.bottom_buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 80px auto 0;
} 
.bottom_buttons button {
    display: flex;
    align-items: center;
    background-color: #1D1D52;
    border-radius: 25px;
    color: #FFF;
    border-color: #1D1D52;
    min-height: 50px;
    justify-content: center;
    min-width: 130px;
    font-size: 16px;
    font-weight: 500;
}
.bottom_buttons button:hover, .bottom_buttons button:focus{background-color:#0292DF;border-color:#0292DF;}
.bottom_buttons button iconify-icon {
    margin-left: 8px;
} 
 
.bottom_buttons button.ecg-prev {
    background-color: #FFF;
    box-shadow: 0px 0px 8px rgba(18, 18, 22, 0.07);
    border-color: transparent;
    color: #1D1D52;
}
.bottom_buttons{display: flex;justify-content: center;gap: 40px;}
.bottom_buttons button.ecg-prev iconify-icon {  margin-right: 8px;  margin-left: 0px;}

h2.ecg-results-title {
    font-size: 26px;
    color: #1D1D52;
    font-weight: bold;
    position: relative;
    margin: 20px 0 -210px 0;
    padding: 0;
    z-index: 1;
    font-family: Inter, sans-serif;
}
h2.ecg-results-title:after {
    content: "";
    background-color: #FFF;
    width: 450px;
    height: 220px;
    position: absolute;
    top: -114px;
    left: 0;
    right: 0;
    filter: blur(20px);
    margin: 0 auto;
    z-index: -1;
}

.ecg-score p {
    font-size: 17px;
    color: #1D1D52;
    font-weight: bold;
    margin-top: 12px;
} 
.ecg-score {
    border: 1px solid #1D1D52;
    border-radius: 20px;
    padding: 23px;
    margin-bottom: 22px;
} 
.ecg-score span.ecg-score-button {
    border: 1px solid #1D1D52;
    min-height: 50px;
    width: 244px;
    font-size: 19px;
    max-width: 100%;
    display: grid;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    font-weight: bold;
    color: #1D1D52;
    font-family: "Red Hat Display", Sans-serif;
    border-radius: 25px;
}
.ecg-score h4 {
    margin: 20px 0 0 0;
    padding: 0;
    font-size: 28px;
    font-weight: bold;
    color: #1D1D52;
}


/* Responsive design for wheel */
@media ( max-width: 991px ) {
    .ecg_assessment .ecg-options{gap: 20px 15px;}
    .ecg_assessment .ecg-options > label {
        flex: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);}
}


@media (max-width: 768px) {
    .ecg-wheel-container {
        max-width: 450px;
        padding: 20px;
        margin: 20px auto;
        border-radius: 16px;
    }
    
    /* .ecg-score {
        font-size: 1.4em;
    } */
    
    .ecg-recommendation {
        padding: 20px;
        border-radius: 12px;
    }
    
    .ecg-wheel-label {
        font-size: 11px;
    }
    h2.ecg-results-title::after{display: none;}
    h2.ecg-results-title{margin: 0px 0 -40px 0;}
    .ecg_assessment{padding-top: 30px;padding-bottom: 40px;}
    .ecg_assessment .ecg-options > label b{font-size: 18px;}
    .ecg_assessment .ecg-options > label {
        flex: 100%;
        max-width: 100%;
    } 
    .ecg_assessment .ecg-options > label b{margin-bottom: 5px;}
    .bottom_buttons{margin-top: 20px;   }
    .ecg_assessment  .ecg-assessment-container{padding: 5px;}
    .ecg_assessment .heading_box h2{font-size: 25px;}
    .ecg_assessment .heading_box h3{font-size: 20px;;}
    .ecg_assessment .heading_box{margin-bottom: 50px;}
    .ecg-score h4{font-size: 20px;}
    .ecg-score p{font-size: 13px;font-weight: 600;}
    .ecg-score span.ecg-score-button{font-size: 16px;}
    .ecg-recommendation h4 {
        font-size: 20px;}
        .ecg-recommendation h3{font-size: 20px;}
        .ecg-restart{margin-top: 10px;}
}

@media (max-width: 480px) {
    .ecg-wheel-container {
        max-width: 380px;
        padding: 15px;
        margin: 15px auto;
    }
    
    /* .ecg-score {
        font-size: 1.3em;
    } */
    
    .ecg-recommendation {
        padding: 18px;
    }
    
    .ecg-restart {
        padding: 12px 24px;
        font-size: 0.95em;
    }
    
    .ecg-wheel-label {
        font-size: 10px;
    }
    
    .ecg-tooltip {
        font-size: 11px;
        padding: 8px 12px;
    }
} 