:root {
    --primary-color: #1a237e;
    --secondary-color: #d32f2f;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --button-hover: #b71c1c;
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    /* background-color: var(--light-bg); */
}

.hero {
    /* min-height: 60vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92));
    position: relative;
}

.flag-container {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.flag-container:hover {
    transform: scale(1.02);
}

.flag {
    width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: 3.5rem;
    margin: 1rem 0 0.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.main-cta {
    margin-top: 1rem;
}

.primary-button {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
}

.primary-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.primary-button:hover:not(:disabled) {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.questions-section {
    max-width: 800px;
    margin: 0 auto;
}

.info-section {
    margin-top: 4rem;
    text-align: center;
}

.info-section h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.save-act-link {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(26, 35, 126, 0.05);
    border-radius: 8px;
}

.save-act-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.save-act-link a:hover {
    color: var(--button-hover);
    text-decoration: underline;
}

.fact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.fact {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.fact:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.fact h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.fact p {
    color: var(--text-color);
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem 0;
    background: var(--light-bg);
}

.cta-container {
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .info-section h2 {
        font-size: 2rem;
    }
    
    .fact-container {
        grid-template-columns: 1fr;
    }
    
    .primary-button {
        width: 100%;
        max-width: 300px;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
}

/* Navigation */
.main-nav {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Requirements Page */
.requirements-page {
    padding-top: 2rem;
}

.state-selector {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.state-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.state-form label {
    font-size: 1.2rem;
    color: var(--text-color);
}

.state-form select {
    padding: 0.8rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    background-color: var(--white);
}

.requirement-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.requirement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.requirement-card ul {
    list-style-type: none;
    padding: 0;
}

.requirement-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.requirement-card li:last-child {
    border-bottom: none;
}

.requirements-display {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.requirements-display h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .state-form select,
    .state-form button,
    .primary-button {
        width: 100%;
        max-width: 300px;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .requirement-card {
        padding: 1.5rem;
    }
}

/* Additional Styles */
.section-description {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 1rem 0 2rem;
    max-width: 800px;
    margin: 1rem auto 2rem;
}

.deadline-date,
.deadline-time {
    font-weight: bold;
    color: var(--secondary-color);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content .requirement-card {
    margin-bottom: 3rem;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.contact-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Modal Alert Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.modal-close {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: var(--secondary-color);
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.error-message {
    text-align: center;
    padding: 2rem;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    margin: 1rem 0;
}

.error-message p {
    margin-bottom: 1rem;
    color: #d32f2f;
}

.requirements-content {
    margin: 1rem 0;
}

.source {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.source a {
    color: var(--primary-color);
    text-decoration: none;
}

.source a:hover {
    text-decoration: underline;
}

/* Feedback Section Styles */
#feedback-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#feedback {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#feedback h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

#feedback p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

#feedback ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

#feedback li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

#feedback strong {
    color: var(--primary-color);
    font-weight: 600;
}

#feedback a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

#feedback a:hover {
    text-decoration: underline;
}

/* Mobile styles */
@media (max-width: 768px) {
    #feedback {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    #feedback h2 {
        font-size: 1.5rem;
    }
    
    #feedback p {
        font-size: 1rem;
    }
}

/* QA Section Styles */
.qa-section {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.user-question {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.user-answer {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.user-answer:hover {
    background-color: rgba(255, 255, 255, 0.5);
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .qa-section {
        padding: 1.5rem;
    }
    
    .user-question {
        font-size: 1rem;
    }
}

/* Typeahead Styles */
.input-container {
    position: relative;
    width: 100%;
}

.answer-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 1rem;
}

.user-answer {
    padding: 0.8rem 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-answer:hover {
    background-color: #f0f0f0;
}

.state-typeahead {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.state-typeahead:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.typeahead-dropdown.active {
    display: block;
}

.typeahead-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.typeahead-item:hover {
    background-color: var(--light-bg);
}

.typeahead-item.selected {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .answer-container {
        max-width: 100%;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

#feedback .loading-spinner {
    display: block;
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Radio Button Group Styles */
.radio-container {
    width: 100%;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0;
    width: 100%;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.radio-option:hover {
    background-color: #f8f8f8;
    border-color: #d0d0d0;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #757575;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--primary-color);
    background-color: var(--white);
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.radio-label {
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-color);
    cursor: pointer;
    flex: 1;
    padding-top: 2px;
}

.radio-option:has(input[type="radio"]:checked) {
    background-color: #f8f9ff;
    border-color: var(--primary-color);
}

.question-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

.question-navigation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    align-items: center;
}

.navigation-top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.previous-button {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.previous-button:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.start-over-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    width: auto;
    min-width: 120px;
    text-align: center;
}

.start-over-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

/* Skip button styles */
.next-button {
    background-color: #808080;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.next-button:hover {
    background-color: #666666;
}

/* Navy styling for Next button when question is answered */
button.next-button.navy {
    background-color: #1a237e;
}

button.next-button.navy:hover {
    background-color: #000051;
}

/* Keep summary section's Looks Good button navy */
.summary-section .next-button {
    background-color: #1a237e;
}

.summary-section .next-button:hover {
    background-color: #000051;
}

/* Summary Section Styles */
.summary-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.summary-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.summary-question {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.summary-answer {
    color: var(--text-color);
}

.summary-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* Mobile styles for summary */
@media (max-width: 768px) {
    .summary-section {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }
    
    .summary-item {
        padding: 0.75rem;
    }
}

.model-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    color: #666;
}

.model-selection input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #808080;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    background: white;
    transition: all 0.2s ease;
}

.model-selection input[type="checkbox"]:checked {
    background-color: #1a237e;
    border-color: #1a237e;
}

.model-selection input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.model-selection input[type="checkbox"]:hover {
    border-color: #1a237e;
}

.model-selection label {
    cursor: pointer;
    user-select: none;
}

#animated-phrases {
    height: 4.8rem; /* Fixed height for 3 lines of text */
    margin: 1.5rem 0;
}

.animated-text {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    min-height: 4.8rem;
    display: none;
    opacity: 0;
    color: #666;
    font-style: italic;
    padding: 0 1rem;
} 