/**
 * AI Readiness Radar™ - Main Stylesheet
 * Medix Technology
 * HIMSS26 Campaign
 */

/* Variables */
:root {
    --primary-color: #0A3161;
    --secondary-color: #00A0AA;
    --accent-color: #FF6B35;
    --success-color: #2E8540;
    --warning-color: #FDB81E;
    --danger-color: #D83933;
    --text-color: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --background-color: #F5F7FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Header Bar with Blue Background */
.header-bar {
    background-color: #0A3161;
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 30px;
}

.badge {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 20px;
}

/* Screens */
.screens-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.screen {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.screen-content {
    padding: 40px;
    flex: 1;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Welcome Screen */
.background-graphic {
    position: absolute;
    top: 50%;
    right: -100px;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.2;
}

.value-props {
    margin: 30px 0;
}

.value-props ul {
    list-style-type: none;
    padding: 0;
}

.value-props li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.value-props li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--success-color);
    border-radius: 50%;
}

.supporting-text {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 10px;
    text-align: center;
}

/* Question Screens */
.progress-indicator {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background-color: #E6E6E6;
    border-radius: 3px;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: right;
}

.question-category {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.question-text {
    margin-bottom: 30px;
}

.options-container {
    margin-bottom: 40px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: var(--secondary-color);
    background-color: rgba(0, 160, 170, 0.05);
}

.option.selected {
    border-color: var(--secondary-color);
    background-color: rgba(0, 160, 170, 0.1);
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.option.selected .option-radio {
    border-color: var(--secondary-color);
}

.option.selected .option-radio:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.option-text {
    flex: 1;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
}

/* Lead Form */
.form-container {
    margin-top: 30px;
    background-color: #F9F9F9;
    padding: 30px;
    border-radius: 8px;
}

.form-row {
    display: flex;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-right: 20px;
}

.form-group:last-child {
    margin-right: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.consent-group {
    display: flex;
    align-items: flex-start;
}

.consent-group input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
}

.form-buttons {
    margin-top: 30px;
    text-align: center;
}

/* Results Screen */
.results-container {
    margin-top: 30px;
}

.score-container {
    margin-bottom: 30px;
}

.score-container.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    color: var(--light-text);
}

.score-label {
    font-size: 1.2rem;
    font-weight: 600;
}

.radar-chart-container {
    height: 300px;
    margin: 30px 0;
}

.key-findings {
    background-color: #F9F9F9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.follow-up-message {
    text-align: center;
    font-size: 1.1rem;
    margin: 30px 0;
    color: var(--primary-color);
}

/* Thank You Screen */
.thank-you-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 20px;
}

.email-contents,
.action-recommendation,
.himss-options {
    margin: 30px 0;
}

.email-contents ul,
.himss-options ul {
    list-style-type: none;
    padding: 0;
}

.email-contents li,
.himss-options li {
    margin-bottom: 10px;
}

.social-sharing {
    margin: 30px 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5F5F5;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 10px 20px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #082950;
}

.btn-secondary {
    background-color: #E6E6E6;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #D9D9D9;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.btn-nav {
    min-width: 120px;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cta-container {
    text-align: center;
    margin-top: 30px;
}

/* Loading Overlay - EXPLICITLY SET TO DISPLAY:NONE BY DEFAULT */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.loading-overlay:not(.hidden) {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--border-color);
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Footer */
.footer {
    padding: 20px;
    background-color: #F5F5F5;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: auto;
}

.footer a {
    color: var(--primary-color);
}

/* Form Validation */
.error {
    border-color: var(--danger-color) !important;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* New styles for simplified thank you page */
.maturity-badge {
    background-color: #2E8540;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 15px;
    display: inline-block;
    text-align: center;
    text-transform: uppercase;
}

.thank-you-message {
    font-size: 18px;
    line-height: 1.5;
    margin: 30px 0;
}

.contact-info {
    margin-top: 30px;
    text-align: center;
    font-size: 16px;
}

.contact-info a {
    color: #0A3161;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .screen-content {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .background-graphic {
        display: none;
    }
}
