:root {
    --primary-color: #3e3e3e;
    --secondary-color: #f6f6f6;
    --accent-color: #f0523d;
    --text-color: #3e3e3e;
    --border-color: #e4e4e4;
    --background-color: #fff;
    --dark-color: #0a2540;
    --success-color: #34a853;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gray: #5f6368;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

/* Modern Header Layout */
.header-content {
    margin-top: 99px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.header-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.header-title-section {
    grid-column: span 6;
    padding: 2rem 0;
}

.header-spacer {
    grid-column: span 6;
}

.header-title-section h1 {
    white-space: pre-wrap;
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-title-section,
    .header-spacer {
        grid-column: span 12;
    }
    
    .header-content {
        margin-top: 60px;
    }
}

/* Keep existing header-section styles but update for modern layout */
.header-section {
    background: var(--primary-color);
    background-image: url('/static/images/aim.jpg');
    background-size: cover;
    background-position: 95% center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.header-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.header-section h1 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 42px;
    letter-spacing: .01em;
    line-height: 1.2em;
    text-transform: none;
    margin-bottom: 15px;
}

.header-section .lead {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    letter-spacing: .06em;
    line-height: 1.8em;
    text-transform: none;
    margin-bottom: 15px;
}

.header-section p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    letter-spacing: .06em;
    line-height: 1.6em;
    text-transform: none;
    margin-bottom: 8px;
}

/* Card Styling */
.card {
    background: var(--background-color);
    box-shadow: 0 4px 33px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    border: none;
    transition: none;
}

.card-header {
    background: var(--dark-color);
    border-bottom: none;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header.bg-dark {
    background: var(--dark-color) !important;
}

.card-header h4 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.02em;
    line-height: 1.3em;
    text-transform: none;
    color: var(--white);
    margin-bottom: 0;
}

.card-body {
    padding: 2rem;
    background: var(--background-color);
}

.card-footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Section Styling */
.section {
    padding: 3rem 0;
    background: var(--background-color);
    position: relative;
}

.section-dark {
    background: var(--dark-color);
    color: var(--white);
}

.section-light {
    background: var(--light-bg);
}

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

.section-header h2 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 32px;
    letter-spacing: 0.02em;
    line-height: 1.3em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Card Hover Effects */
.card:hover {
    transform: none;
    box-shadow: 0 4px 33px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
}

/* Card Content Spacing */
.card-body > *:first-child {
    margin-top: 0;
}

.card-body > *:last-child {
    margin-bottom: 0;
}

/* Card Header with Logo */
.card-header-with-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-header-with-logo img {
    max-height: 40px;
    width: auto;
}

/* Responsive Card Adjustments */
@media (max-width: 768px) {
    .card-header {
        padding: 1.25rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

/* Card Status Indicators */
.card-status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.card-status-success {
    background: rgba(52, 168, 83, 0.1);
    color: var(--success-color);
}

.card-status-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.card-status-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Form Styling */
.form-control, .form-select {
    font-family: inherit;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    font-size: 16px;
    line-height: 1.4em;
    box-sizing: border-box;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus, .form-select:focus {
    outline-color: var(--primary-color);
    outline-style: solid;
    outline-width: 2px;
    outline-offset: -2px;
}

.form-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.btn-primary {
    cursor: pointer;
    background: var(--primary-color);
    padding: 12px 24px;
    text-align: center;
    transition: background-color .1s ease-in-out, opacity .1s ease-in-out;
    line-height: 22px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    color: #fff !important;
    border: 0;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #000;
    box-shadow: none;
}

.btn-outline-primary {
    cursor: pointer;
    background: transparent;
    padding: 12px 24px;
    text-align: center;
    transition: background-color .1s ease-in-out, opacity .1s ease-in-out;
    line-height: 22px;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 14px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff !important;
}

/* Webcam Section */
#webcamContainer {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.1);
    border: 3px solid var(--primary-color);
    background: var(--white);
}

#instructionBox {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--white);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
}

/* Results Section */
.result-container {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.1);
}

.result-item {
    border-left: 4px solid var(--success-color);
    background: rgba(52, 168, 83, 0.1);
    padding: 1rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1rem;
}

.age-label {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Loading Animation */
.spinner-border {
    color: var(--primary-color);
}

#photoPreview {
    max-width: 100%;
    height: 200px;
    border: 2px dashed var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background: var(--white);
    transition: all 0.3s ease;
}

#photoPreview:hover {
    border-color: var(--secondary-color);
    background: rgba(26, 115, 232, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .btn-primary {
        width: 100%;
    }
    
    #photoGallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Additional Styles */
.form-text {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 6px;
}

#photoPreview {
    max-width: 100%;
    height: 200px;
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    background: #ffffff;
    transition: all 0.3s ease;
}

#photoPreview:hover {
    border-color: var(--primary-color);
    background: #ffffff;
}

#photoPreview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.results-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.result-item {
    text-align: center;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-item h6 {
    color: #6c757d;
    margin-bottom: 12px;
    font-size: 16px;
}

.result-item .h3 {
    color: #0d6efd;
    margin-bottom: 8px;
    font-size: 24px;
}

textarea.form-control {
    resize: vertical;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
}

#ageDifferenceText {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
}

.text-danger {
    background-color: #fff3f3;
}

.text-success {
    background-color: #f3fff3;
}

.text-info {
    background-color: #f3f9ff;
}

/* Base styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
}

/* Form styles */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    padding: 1.5rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 84, 200, 0.25);
    border-color: var(--primary-color);
}

/* Results styles */
.age-result-box {
    background: white;
    transition: transform 0.3s ease;
}

.age-result-box:hover {
    transform: translateY(-5px);
}

.age-result-box h2 {
    color: var(--primary-color);
    font-weight: 600;
}

.age-difference-box {
    background: white;
    border-radius: 8px;
}

.age-difference-box.bg-warning {
    border-left: 5px solid #ffc107;
}

.age-difference-box.bg-success {
    border-left: 5px solid var(--success-color);
}

.age-difference-box.bg-info {
    border-left: 5px solid #17a2b8;
}

.recommendations-box .list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.recommendations-box .list-group-item:hover {
    background-color: #f8f9fa;
}

.recommendations-box .list-group-item:first-child {
    border-top: none;
}

.recommendations-box .list-group-item:last-child {
    border-bottom: none;
}

/* Image gallery styles */
.processed-images-gallery {
    padding: 1rem;
}

.processed-image-box {
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.processed-image-box:hover {
    transform: scale(1.05);
}

.processed-image-box img {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading indicator */
#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Webcam styles */
#webcamContainer {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Enhanced choice styling */
.enhancedchoice_wrapper {
    margin: 1rem 0;
}

.enhancedchoice input[type="radio"],
.enhancedchoice input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.enhancedchoice label {
    display: block;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.enhancedchoice label:hover {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.05);
}

.enhancedchoice input[type="radio"]:checked + label,
.enhancedchoice input[type="checkbox"]:checked + label {
    border-color: var(--bs-primary);
    background-color: rgba(13, 110, 253, 0.1);
}

.enhancedchoice input[type="radio"]:checked + label .ec::before,
.enhancedchoice input[type="checkbox"]:checked + label .ec::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--bs-primary);
}

/* Fix for radio button alignment */
.enhancedchoice label.hover {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.enhancedchoice .ec {
    flex: 1;
}

/* Form control styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

/* Modal styling */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid rgba(26, 115, 232, 0.1);
    background-color: rgba(26, 115, 232, 0.05);
}

.modal-footer {
    border-top: 2px solid rgba(26, 115, 232, 0.1);
}

/* PDF Viewer styling */
.pdf-container {
    position: relative;
    width: 100%;
    height: 600px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* Optional: Add responsive height for different screen sizes */
@media (max-width: 768px) {
    .pdf-container {
        height: 400px;
    }
}

.enhancedchoice input[type="text"] {
    display: inline-block;
    width: auto;
    margin-left: 10px;
    padding: 2px 8px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

.enhancedchoice input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.d-none {
    display: none !important;
}

.enhancedchoice input[type="number"] {
    display: inline-block;
    width: 100px;
    margin-left: 10px;
    padding: 2px 8px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.enhancedchoice input[type="number"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Remove number input spinners */
.enhancedchoice input[type="number"]::-webkit-inner-spin-button,
.enhancedchoice input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.enhancedchoice input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.range-wrapper {
    padding: 0 10px;
    margin-top: 20px;
}

.range-labels {
    margin-top: 12px;
    font-size: 16px;
    margin-top: 10px;
    padding: 0 2px;
    color: #666;
    font-size: 14px;
}

/* Styling the range input for better cross-browser appearance */
.form-range {
    width: 100%;
    height: 25px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

/* Thumb styling */
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    margin-top: -8px;
}

.form-range::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    border: none;
}

/* Track styling */
.form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
}

.form-range::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
}

/* Focus state */
.form-range:focus {
    outline: none;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Medical Conditions Select Styling */
.condition-select-wrapper {
    margin-top: 10px;
}

.condition-select {
    width: 100%;
    min-height: 100px;
}

.condition-select option {
    padding: 8px;
}

#selectedConditions {
    margin-top: 20px;
}

/* Select2 Styling */
.select2-container {
    width: 100% !important;
    margin-top: 5px;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    min-height: 100px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 5px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 5px;
}

.select2-container--default .select2-search--inline .select2-search__field {
    margin-top: 7px;
}

.form-select {
    font-family: inherit;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    padding: 12px;
    font-size: 16px;
    line-height: 1.4em;
    box-sizing: border-box;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233e3e3e' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Survey Instructions - Standardized format for instruction text at the top of cards */
.survey-instructions {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    letter-spacing: 0.02em;
    text-align: left;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Optional highlight variant */
.survey-instructions.highlight {
    background-color: rgba(62, 62, 62, 0.05);
    border-radius: 8px;
    border: none;
    padding: 1rem;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .survey-instructions {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

/* Typography - Headings */
h1, h2, h3 {
    text-rendering: optimizeLegibility;
    color: var(--text-color);
}

h1:first-child, h2:first-child, h3:first-child {
    margin-top: 0;
}

h1:last-child, h2:last-child, h3:last-child {
    margin-bottom: 0;
}

h1 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 54px;
    letter-spacing: 0.01em;
    line-height: 1em;
    text-transform: none;
    margin-bottom: 15px;
}

h2 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 32px;
    letter-spacing: 0.02em;
    line-height: 1.3em;
    text-transform: none;
    margin-bottom: 12px;
}

h3 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    letter-spacing: 0.06em;
    line-height: 1.4em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Heading combinations spacing */
h1 + h1, h1 + h2, h1 + h3,
h2 + h1, h2 + h2, h2 + h3,
h3 + h1, h3 + h2, h3 + h3 {
    margin-top: 15px;
}

/* Heading links */
h1 a, h2 a, h3 a {
    padding-bottom: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: border-color 0.15s ease-out, color 0.15s ease-out;
    color: inherit;
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover {
    color: rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Responsive typography */
@media screen and (max-width: 640px) {
    h1 {
        font-size: 32px;
        letter-spacing: 0.00592593px;
    }
    
    h2 {
        font-size: 28px;
        letter-spacing: 0.0175px;
    }
}

/* Card header specific styles */
.card-header h4 {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.02em;
    line-height: 1.3em;
    text-transform: none;
    color: var(--white);
    margin-bottom: 0;
}

/* Header section specific styles */
.header-section h1 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-section h1 a {
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.header-section h1 a:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Card Footer with Muted Text */
.card-footer.bg-transparent {
    padding: 1.25rem;
    background: transparent !important;
}

.card-footer.bg-transparent .text-muted {
    color: var(--gray) !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-footer.bg-transparent h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.card-footer.bg-transparent .small {
    font-size: 0.875rem;
    line-height: 1.6;
}

.card-footer.bg-transparent .fa-question-circle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-footer.bg-transparent {
        padding: 1rem;
    }
}

/* Option Card Styling */
.option-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.option-card .enhancedchoice_wrapper {
    margin-top: auto;
    width: 100%;
}

.option-card .enhancedchoice {
    width: 100%;
}

.option-card .enhancedchoice label {
    width: 100%;
    margin: 0;
}
