body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.questionnaire-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: max-width 0.3s ease;
}

/* Wider container specifically for eligibility step */
.questionnaire-container:has(#eligibilityStep.active) {
    max-width: 1300px;
}

/* Alternative fallback for browsers that don't support :has() */
body.eligibility-active .questionnaire-container {
    max-width: 1300px;
}

.progress-bar-container {
    margin-bottom: 3rem;
}

.progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar {
    background-color: #39CCCC;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.question-subtitle {
    color: #39CCCC;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.option-button {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.view-results-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.continue-google-btn {
    background: #333333 !important;
    border: none !important;
    color: white !important;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.continue-google-btn:hover {
    background: #555555 !important;
    transform: translateY(-2px);
}

.google-icon {
    background: linear-gradient(45deg, #4285f4, #34a853, #fbbc05, #ea4335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Results Page Styles */
.results-layout {
    background: white;
    border-radius: 15px;
    text-align: center;
}

.results-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.weight-chart {
    position: relative;
    margin: 2rem auto;
    max-width: 900px;
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.weight-curve {
    width: 100%;
    height: 100%;
    margin-bottom: 2rem;
}

.current-weight-label {
    position: absolute;
    top: 40px;
    left: 60px;
    background: white;
    border: 2px solid #7cb87c;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(124, 184, 124, 0.2);
}

.target-weight-label {
    position: absolute;
    right: 60px;
    bottom: 100px;
    background: white;
    border: 2px solid #7cb87c;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(124, 184, 124, 0.2);
}

.date-label {
    position: absolute;
    right: 60px;
    bottom: 40px;
    background: white;
    border: 2px solid #7cb87c;
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(124, 184, 124, 0.2);
}

.results-text {
    margin: 3rem 0 2rem 0;
}

.results-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.weight-loss-amount {
    color: #39CCCC;
    font-weight: 700;
}

.or-more {
    color: #39CCCC;
}

.disclaimer-text {
    margin: 2rem 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.continue-results-btn {
    background: #000000 !important;
    border: none !important;
    color: white !important;
    border-radius: 50px;
    padding: 1rem 4rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 75, 122, 0.3);
    margin-top: 2rem;
}

.continue-results-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile responsiveness for new design */
@media (max-width: 768px) {
    .eligibility-layout {
        margin: -1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .brand-logo-large {
        width: 150px;
        height: 60px;
    }
    
    .main-eligibility-title {
        font-size: 1.4rem;
    }
    
    .main-eligibility-text {
        font-size: 1rem;
    }
    
    .main-benefits-section {
        padding: 1.5rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .protocol-info-main {
        padding: 1.5rem;
    }
    
    .main-get-started-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Step 5 mobile responsiveness */
    .commitment-options,
    .diet-options {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step5-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step5-buttons .btn {
        padding: 0.75rem 1rem;
    }
    
    /* Step 6 mobile responsiveness */
    .other-meds-options {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step6-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step6-buttons .btn {
        padding: 0.75rem 1rem;
    }
    
    /* Step 7 mobile responsiveness */
    .allergy-options {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step7-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step7-buttons .btn {
        padding: 0.75rem 1rem;
    }
    
    /* Step 8 mobile responsiveness */
    .step8-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step8-buttons .btn {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .eligibility-layout {
        margin: -1rem;
        padding: 1.5rem 1rem;
    }
    
    .brand-logo-large {
        width: 120px;
        height: 48px;
    }
    
    .main-eligibility-title {
        font-size: 1.2rem;
    }
    
    .main-benefits-title {
        font-size: 1.2rem;
    }
    
    .benefit-label {
        font-size: 1rem;
    }
    
    .benefit-description {
        font-size: 0.9rem;
    }
    
    /* Step 5 small mobile adjustments */
    .commitment-question,
    .diet-question {
        font-size: 1rem;
    }
    
    .step5-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
    
    /* Step 8 small mobile adjustments */
    .step8-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}

/* Mobile responsiveness for results page */
@media (max-width: 768px) {
    .results-content {
        padding: 0 1.5rem;
    }
    
    .weight-chart {
        height: 250px;
        max-width: 100%;
    }
    
    .current-weight-label,
    .target-weight-label,
    .date-label {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .results-title {
        font-size: 1.3rem;
    }
    
    .progress-dots {
        gap: 0.5rem;
    }
    
    .dot {
        width: 60px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .weight-chart {
        height: 200px;
    }
    
    .current-weight-label {
        left: 20px;
        top: 40px;
    }
    
    .target-weight-label {
        right: 20px;
        bottom: 100px;
    }
    
    .date-label {
        right: 20px;
        bottom: 50px;
    }
    
    .results-title {
        font-size: 1.1rem;
    }
    
    .continue-results-btn {
        padding: 1rem 3rem;
        font-size: 1rem;
    }
}

/* Mobile responsiveness for success page */
@media (max-width: 768px) {
    .success-layout {
        padding: 1.5rem 0;
    }
    
    .success-content-main {
        padding: 0 1.5rem;
    }
    
    .main-success-title {
        font-size: 1.4rem;
    }
    
    .email-input {
        padding: 0.9rem 3.5rem 0.9rem 0.9rem;
    }
    
    .privacy-text {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .action-buttons {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .main-success-title {
        font-size: 1.2rem;
    }
    
    .email-input-section {
        max-width: 100%;
    }
    
    .view-results-btn,
    .continue-google-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile responsiveness for logo */
@media (max-width: 768px) {
    .questionnaire-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .brand-logo {
        max-width: 150px;
        margin-bottom: 1.5rem;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .eligibility-title {
        font-size: 1.2rem;
    }
    
    .height-inputs {
        flex-direction: column;
    }
    
    .gender-options, .previous-attempts {
        flex-direction: column;
    }
    
    /* Fixed mobile alignment for step 4 buttons */
    .step4-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.75rem;
        justify-content: space-between;
        align-items: stretch;
    }
    
    .step4-buttons .btn {
        flex: 1;
        width: auto !important;
        margin-bottom: 0;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        max-width: 120px;
    }
    
    .questionnaire-container {
        padding: 1rem;
    }
    
    .eligibility-title {
        font-size: 1.1rem;
    }
    
    /* Ensure buttons stay side by side even on very small screens */
    .step4-buttons {
        gap: 0.5rem;
    }
    
    .step4-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}

.option-button {
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: left;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    cursor: pointer;
}

.option-button:hover {
    border-color: #39CCCC;
    background-color: #f1eef3;
}

.option-button.selected {
    background-color: #E9EBEE;
    border-color: #39CCCC;
    color: #000000;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: #39CCCC;
    box-shadow: 0 0 0 0.2rem rgba(139, 75, 122, 0.25);
}

.btn-primary {
    background-color: #39CCCC;
    border-color: #39CCCC;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    width: 100%;
}

.btn-primary:hover {
    background-color: #7a4269;
    border-color: #7a4269;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    margin-right: 1rem;
}

.gender-options, .previous-attempts {
    display: flex;
    gap: 1rem;
}

.gender-options .option-button,
.previous-attempts .option-button {
    flex: 1;
    text-align: center;
}

.height-inputs {
    display: flex;
    gap: 1rem;
}

.height-inputs .form-control {
    flex: 1;
}

.step-4-form .row {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.8rem;
}

/* Step 5 Lifestyle Questions Styles */
.lifestyle-info {
    margin: 2rem 0 1.5rem 0;
}

.lifestyle-note {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.4;
    margin: 0;
}

.commitment-section,
.diet-section {
    margin: 2rem 0;
}

.commitment-question,
.diet-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.commitment-options,
.diet-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.commitment-options .option-button,
.diet-options .option-button {
    flex: 1;
    text-align: center;
}

.step5-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step5-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Step 6 Medication Questions Styles */
.medication-options {
    margin-bottom: 2rem;
}

.medication-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #39CCCC;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.medication-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.medication-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.other-medications-section {
    margin: 2rem 0;
}

.other-meds-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
    line-height: 1.3;
}

.other-meds-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.other-meds-options .option-button {
    flex: 1;
    text-align: center;
}

.confirmation-section {
    margin: 2.5rem 0 2rem 0;
}

.confirmation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.4;
}

.confirmation-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #39CCCC;
    border-radius: 4px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.confirmation-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.confirmation-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.confirmation-text {
    color: #333;
    font-weight: 500;
}

.step6-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step6-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Step 7 Allergy Questions Styles */
.allergy-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.allergy-options .option-button {
    flex: 1;
    text-align: center;
}

.add-allergy-section {
    margin: 1.5rem 0;
    text-align: right;
}

.allergy-required-text {
    color: #39CCCC;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: left;
}

.add-allergy-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-allergy-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

.added-allergies-list {
    margin: 1.5rem 0;
}

.allergy-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.allergy-details {
    color: #333;
    font-size: 0.9rem;
}

.remove-allergy {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-allergy:hover {
    background-color: #dc3545;
    color: white;
}

.allergy-confirmation-section {
    margin: 2.5rem 0 2rem 0;
}

.confirmation-note {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.step7-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step7-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Step 8 Medical Conditions Styles */
.medical-conditions-options {
    margin-bottom: 2rem;
}

.medical-condition-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.medical-condition-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.medical-condition-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.step8-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step8-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Add Medication Button Styles */
.add-medication-section {
    margin: 1.5rem 0;
    text-align: right;
}

.medication-required-text {
    color: #39CCCC;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: left;
}

.add-medication-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-medication-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

/* Added Medications List */
.added-medications-list {
    margin: 1.5rem 0;
}

.medication-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.medication-details {
    color: #333;
    font-size: 0.9rem;
}

.remove-medication {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-medication:hover {
    background-color: #dc3545;
    color: white;
}

/* Modal Styles */
.medication-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.modal-body {
    padding: 0 1.5rem 1rem 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
}

.confirm-medication-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-medication-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

/* Navigation buttons with black background and white text */
#navigationButtons .btn-secondary {
    background-color: black;
    border-color: black;
    color: white !important;
}

#navigationButtons .btn-secondary:hover {
    background-color: #333;
    border-color: #333;
    color: white !important;
}

#navigationButtons .btn-primary {
    background-color: black;
    border-color: black;
    color: white !important;
}

#navigationButtons .btn-primary:hover {
    background-color: #333;
    border-color: #333;
    color: white !important;
}

#navigationButtons .btn-primary:disabled {
    background-color: #666;
    border-color: #666;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 4 Continue button styling - black background with white text */
#continueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#continueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#continueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#step4PrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step4PrevBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Step 5 button styling - black background with white text */
#step5ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step5ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step5ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#step5PrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

/* Step 6 button styling - black background with white text */
#step6ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step6ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step6ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#step6PrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step6PrevBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Step 7 button styling - black background with white text */
#step7ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step7ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step7ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#step7PrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step7PrevBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Step 8 button styling - black background with white text */
#step8ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step8ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step8ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#step8PrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step8PrevBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Step 4 button container alignment */
.step4-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.step4-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* New Modern Eligibility Page Styles */
.eligibility-layout {
    text-align: left;
    padding: 0;
    background: #f8f9fa;
    border-radius: 15px;
    margin: -2rem;
    padding: 3rem 2rem;
    min-height: 80vh;
}

.eligibility-logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-logo-large {
    width: 200px;
    height: 80px;
    margin: 0 auto;
    background-image: url('https://weightlosswithoutthefuss.com/css/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.eligibility-content-main {
    max-width: 800px;
    margin: 0 auto;
}

.main-eligibility-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-align: left;
}

.main-eligibility-text {
    font-size: 1.1rem;
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    text-align: left;
}

.main-get-started-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    margin-bottom: 2.5rem;
    text-decoration: none;
    display: block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-get-started-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.main-benefits-section {
    margin: 3rem 0;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-benefits-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.main-benefits-grid {
    display: grid;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #39CCCC;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(57, 204, 204, 0.1);
}

.benefit-label {
    font-weight: 600;
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.benefit-description {
    color: #34495e;
    line-height: 1.5;
    font-size: 1rem;
}

.protocol-info-main {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2.5rem 0;
    border: 1px solid #dee2e6;
}

.protocol-info-main p {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-style: italic;
}

/* Hide old eligibility styles when new layout is active */
.eligibility-content {
    display: none;
}

/* Success Step Styles - New Design */
.success-layout {
    text-align: center;
    padding: 2rem 0;
    background: white;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.success-content-main {
    padding: 0 2rem;
}

.main-success-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.email-input-section {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.email-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1rem;
    border: 2px solid #39CCCC;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    background: #f9f9f9;
}

.email-input:focus {
    border-color: #39CCCC;
    background: white;
}

.email-input::placeholder {
    color: #999;
}

.go-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.go-button:hover {
    background: #e03333;
}

.privacy-text {
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-text strong {
    color: #333;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.view-results-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.view-results-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Step 9 Drug Questions Styles */
.drug-use-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.drug-use-options .option-button {
    flex: 1;
    text-align: center;
}

.current-drugs-section {
    margin: 2rem 0;
}

.current-drugs-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.drug-types-options {
    margin-bottom: 1.5rem;
}

.drug-type-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.drug-type-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.drug-type-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.add-drug-section {
    margin: 1.5rem 0;
    text-align: right;
}

.drug-required-text {
    color: #39CCCC;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: left;
}

.add-drug-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-drug-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

.added-drugs-list {
    margin: 1.5rem 0;
}

.drug-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drug-details {
    color: #333;
    font-size: 0.9rem;
}

.remove-drug {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-drug:hover {
    background-color: #dc3545;
    color: white;
}

.step9-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step9-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Step 9 button styling - black background with white text */
#step9ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step9ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step9ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#step9PrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    width: auto !important;
    flex: 1;
}

#step9PrevBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Step 9 mobile responsiveness */
@media (max-width: 768px) {
    .drug-use-options {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step9-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step9-buttons .btn {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .current-drugs-question {
        font-size: 1rem;
    }
    
    .step9-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}


/* Cardiovascular Sub-step Styles */
.cardiovascular-options {
    margin-bottom: 2rem;
}

.cardiovascular-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.cardiovascular-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.cardiovascular-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.cardiovascular-buttons,
.thyroid-cancer-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.cardiovascular-buttons .btn,
.thyroid-cancer-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Previous button styles for substeps */
#cardiovascularPrevBtn,
#thyroidCancerPrevBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#cardiovascularPrevBtn:hover,
#thyroidCancerPrevBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Continue button styles for substeps */
#cardiovascularContinueBtn,
#thyroidCancerContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#cardiovascularContinueBtn:hover,
#thyroidCancerContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#cardiovascularContinueBtn:disabled,
#thyroidCancerContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Thyroid Cancer Sub-step Styles */
.thyroid-cancer-options {
    margin-bottom: 2rem;
}

.thyroid-cancer-btn {
    text-align: center;
    padding: 1rem 1.5rem;
}

.other-cancer-input {
    margin: 1.5rem 0;
}

.pathology-section {
    margin: 2rem 0;
}

.pathology-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.pathology-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pathology-options .option-button {
    flex: 1;
    text-align: center;
}

.file-upload-section {
    margin: 1.5rem 0;
}

.file-upload-area {
    border: 2px dashed #39CCCC;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-area:hover {
    background: #e9ecef;
    border-color: #2aa198;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-icon {
    font-size: 2rem;
    color: #39CCCC;
}

.upload-text {
    color: #666;
    font-weight: 500;
}

.uploaded-file {
    margin-top: 1rem;
    padding: 1rem;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-name {
    color: #333;
    font-weight: 500;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.remove-file-btn:hover {
    background: #c82333;
}

/* Not Eligible Step */
.not-eligible-content {
    text-align: center;
    padding: 3rem 2rem;
}

.not-eligible-title {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.5;
    font-weight: 500;
}

/* Enhanced hover effects for consistent styling */
.option-button:hover {
    border-color: #39CCCC;
    background-color: #f1f9f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(57, 204, 204, 0.1);
}

.option-button.selected {
    background-color: #E8F7F7;
    border-color: #39CCCC;
    color: #000000;
    box-shadow: 0 2px 8px rgba(57, 204, 204, 0.2);
}

/* Mobile Responsiveness for new elements */
@media (max-width: 768px) {
    .pathology-options {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .cardiovascular-buttons,
    .thyroid-cancer-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .cardiovascular-buttons .btn,
    .thyroid-cancer-buttons .btn {
        padding: 0.75rem 1rem;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .pathology-question {
        font-size: 1rem;
    }
    
    .cardiovascular-buttons,
    .thyroid-cancer-buttons {
        gap: 0.5rem;
    }
    
    .cardiovascular-buttons .btn,
    .thyroid-cancer-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}

/* Gallbladder/Pancreatitis Sub-step Styles */
.gallbladder-options,
.sleep-apnea-options,
.eating-disorder-status-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallbladder-options .option-button,
.sleep-apnea-options .option-button,
.eating-disorder-status-options .option-button {
    flex: 1;
    text-align: center;
}

.when-removed-section,
.eating-disorder-types-section,
.bulimia-timeline-section {
    margin: 2rem 0;
}

.when-removed-question,
.eating-disorder-types-question,
.bulimia-timeline-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.when-removed-options,
.bulimia-timeline-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.when-removed-options .option-button,
.bulimia-timeline-options .option-button {
    flex: 1;
    text-align: center;
}

.eating-disorder-types-options {
    margin-bottom: 1.5rem;
}

.eating-disorder-type-btn {
    text-align: center;
    padding: 1rem 1.5rem;
}

.add-eating-disorder-section {
    margin: 1.5rem 0;
    text-align: right;
}

.add-eating-disorder-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-eating-disorder-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

.added-eating-disorders-list {
    margin: 1.5rem 0;
}

.eating-disorder-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eating-disorder-details {
    color: #333;
    font-size: 0.9rem;
}

.remove-eating-disorder {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 3px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-eating-disorder:hover {
    background-color: #dc3545;
    color: white;
}

.gallbladder-buttons,
.sleep-apnea-buttons,
.eating-disorders-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.gallbladder-buttons .btn,
.sleep-apnea-buttons .btn,
.eating-disorders-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Button styling for new substeps */
#gallbladderPrevBtn, #gallbladderContinueBtn,
#sleepApneaPrevBtn, #sleepApneaContinueBtn,
#eatingDisordersPrevBtn, #eatingDisordersContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#gallbladderPrevBtn:hover, #gallbladderContinueBtn:hover,
#sleepApneaPrevBtn:hover, #sleepApneaContinueBtn:hover,
#eatingDisordersPrevBtn:hover, #eatingDisordersContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#gallbladderContinueBtn:disabled,
#sleepApneaContinueBtn:disabled,
#eatingDisordersContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Cholesterol Sub-step Styles */
.cholesterol-options {
    margin-bottom: 2rem;
}

.cholesterol-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.cholesterol-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.cholesterol-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.cholesterol-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.cholesterol-buttons .btn {
    flex: 1;
    width: auto !important;
}

/* Button styling for cholesterol substep */
#cholesterolPrevBtn, #cholesterolContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#cholesterolPrevBtn:hover, #cholesterolContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#cholesterolContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Mobile responsiveness for cholesterol step */
@media (max-width: 768px) {
    .cholesterol-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .cholesterol-buttons .btn {
        padding: 0.75rem 1rem;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cholesterol-buttons {
        gap: 0.5rem;
    }
    
    .cholesterol-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}
/* Step 10 Alcohol Consumption Styles */
.step10-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step10-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step10PrevBtn, #step10ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step10PrevBtn:hover, #step10ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step10ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 11 Medical History Styles */
.triglyceride-options,
.diabetes-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.triglyceride-options .option-button,
.diabetes-options .option-button {
    flex: 1;
    text-align: center;
}

.diabetes-section {
    margin: 2rem 0;
}

.diabetes-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.step11-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step11-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step11PrevBtn, #step11ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step11PrevBtn:hover, #step11ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step11ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 12 Surgery and GLP-1 History Styles */
.bariatric-options,
.glp1-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bariatric-options .option-button,
.glp1-options .option-button {
    flex: 1;
    text-align: center;
}

.glp1-section {
    margin: 2rem 0;
}

.glp1-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.step12-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step12-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step12PrevBtn, #step12ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step12PrevBtn:hover, #step12ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step12ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 13 Medications and A1C Styles */
.diabetes-medications-options {
    margin-bottom: 2rem;
}

.diabetes-medication-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.diabetes-medication-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.diabetes-medication-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.a1c-section {
    margin: 2rem 0;
}

.a1c-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.a1c-btn {
    text-align: center;
    padding: 1rem 1.5rem;
}

.step13-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step13-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step13PrevBtn, #step13ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step13PrevBtn:hover, #step13ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step13ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 14 GLP-1 Questions Styles */
.step14-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step14-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step14PrevBtn, #step14ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step14PrevBtn:hover, #step14ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step14ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 15 Personal Information Styles */
.step15-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step15-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step15PrevBtn, #step15ContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step15PrevBtn:hover, #step15ContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

#step15ContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Mobile responsiveness for new steps */
@media (max-width: 768px) {
    .triglyceride-options,
    .diabetes-options,
    .bariatric-options,
    .glp1-options {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step10-buttons,
    .step11-buttons,
    .step12-buttons,
    .step13-buttons,
    .step14-buttons,
    .step15-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .step10-buttons .btn,
    .step11-buttons .btn,
    .step12-buttons .btn,
    .step13-buttons .btn,
    .step14-buttons .btn,
    .step15-buttons .btn {
        padding: 0.75rem 1rem;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .diabetes-question,
    .glp1-question,
    .a1c-question {
        font-size: 1rem;
    }
    
    .step10-buttons,
    .step11-buttons,
    .step12-buttons,
    .step13-buttons,
    .step14-buttons,
    .step15-buttons {
        gap: 0.5rem;
    }
    
    .step10-buttons .btn,
    .step11-buttons .btn,
    .step12-buttons .btn,
    .step13-buttons .btn,
    .step14-buttons .btn,
    .step15-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 0.8rem;
    }
}

/* Step 14 Enhanced Styles */
.dosage-section {
    margin: 2rem 0;
}

.dosage-btn {
    text-align: center;
    padding: 1rem 1.5rem;
}

.other-dosage-input {
    margin: 1.5rem 0;
}

.script-upload-section {
    margin: 2rem 0;
}

.script-upload-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.3;
}

.script-upload-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.script-upload-options .option-button {
    flex: 1;
    text-align: center;
}

/* Mobile responsiveness for enhanced Step 14 */
@media (max-width: 768px) {
    .script-upload-options {
        flex-direction: row;
        gap: 0.75rem;
    }
}

/* Script File Upload Styles (Step 14) */
.script-file-upload-section {
    margin: 1.5rem 0;
}

.script-upload-area {
    border: 2px dashed #39CCCC;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.script-upload-area:hover {
    background: #e9ecef;
    border-color: #2aa198;
}

.script-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.script-upload-icon {
    font-size: 2rem;
    color: #39CCCC;
}

.script-upload-text {
    color: #666;
    font-weight: 500;
}

.script-uploaded-file {
    margin-top: 1rem;
    padding: 1rem;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.script-file-name {
    color: #333;
    font-weight: 500;
}

.remove-script-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.remove-script-file-btn:hover {
    background: #c82333;
}


/* Step 14a Adherence Styles */
.adherence-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.adherence-options .option-button {
    flex: 1;
    text-align: center;
}

.deviation-section {
    margin: 2rem 0;
}

.step14a-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step14a-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step14aPrevBtn, #step14aContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step14aPrevBtn:hover, #step14aContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
}

#step14aContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 14b Side Effects Styles */
.side-effects-options {
    margin-bottom: 2rem;
}

.side-effect-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.side-effect-btn.selected .checkbox-icon {
    background-color: #39CCCC;
    border-color: #39CCCC;
}

.side-effect-btn.selected .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.effectiveness-section {
    margin: 2rem 0;
}

.effectiveness-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.effectiveness-btn {
    text-align: center;
}

.step14b-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
}

.step14b-buttons .btn {
    flex: 1;
    width: auto !important;
}

#step14bPrevBtn, #step14bContinueBtn {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

#step14bPrevBtn:hover, #step14bContinueBtn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
}

#step14bContinueBtn:disabled {
    background-color: #666 !important;
    border-color: #666 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Step 14c Medication Choice Styles */
.medication-cards {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.medication-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    background: white;
    transition: all 0.3s ease;
}

.medication-card:hover {
    border-color: #39CCCC;
    box-shadow: 0 4px 15px rgba(57, 204, 204, 0.1);
}

.medication-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.medication-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.medication-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: #39CCCC;
    margin-bottom: 1rem;
}

.medication-info .price span {
    font-size: 1.2rem;
    font-weight: 400;
}

.medication-info p {
    color: #666;
    line-height: 1.5;
}

.medication-image img {
    max-width: 150px;
    height: auto;
}

.view-plans-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    width: 100%;
}

.view-plans-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

/* Step 14d & 14e Plan Selection Styles */
.plan-header {
    margin-bottom: 2rem;
}

.medication-info-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.medication-image-small img {
    width: 100px;
    height: auto;
}

.medication-info-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.medication-info-header p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.pricing-plans {
    position: relative;
    margin: 2rem 0;
}

.best-value-label {
    background: #39CCCC;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.plan-option {
    display: block;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-option:hover {
    border-color: #39CCCC;
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-option input[type="radio"]:checked + .plan-details {
    background: #E8F7F7;
}

.plan-option:has(input[type="radio"]:checked) {
    border-color: #39CCCC;
    background: #E8F7F7;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-info {
    flex: 1;
}

.plan-duration {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.plan-payment {
    color: #666;
    font-size: 0.9rem;
}

.plan-price {
    text-align: right;
}

.plan-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: #39CCCC;
}

.plan-price .per-month {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.checkout-disclaimer {
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkout-disclaimer p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.checkout-btn {
    background-color: #8B4B7A !important;
    border-color: #8B4B7A !important;
    color: white !important;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
}

.checkout-btn:hover {
    background-color: #7a4269 !important;
    border-color: #7a4269 !important;
}

.checkout-btn:disabled {
    background-color: #999 !important;
    border-color: #999 !important;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .medication-card-content {
        flex-direction: column;
        text-align: center;
    }
    
    .medication-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .plan-details {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .plan-price {
        text-align: center;
    }
}

/* Smooth transitions for all steps */
.step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state for buttons */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Enhanced plan option hover effects */
.plan-option {
    position: relative;
    overflow: hidden;
}

.plan-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 204, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

.plan-option:hover::before {
    left: 100%;
}

/* Medication card animations */
.medication-card {
    transform: scale(1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medication-card:hover {
    transform: scale(1.02);
}

/* Better focus states for accessibility */
.option-button:focus,
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid #39CCCC;
    outline-offset: 2px;
}

/* Print styles (in case users want to print) */
@media print {
    .step:not(.active) {
        display: none !important;
    }
    
    .btn,
    .progress-bar-container,
    #navigationButtons {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .option-button {
        border-width: 3px;
    }
    
    .option-button.selected {
        border-width: 4px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .step,
    .option-button,
    .btn,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if desired */
    /* Example:
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    */
}
/* Step 14a multi-question sections */
.current-dose-section,
.dose-preference-section,
.adherence-question-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.duration-btn,
.current-dose-btn,
.dose-preference-btn {
    text-align: left;
}