/* Page-level styling */
body.index {
    background-color: #F7F2F9; /* cool white */
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0A1128; /* navy for baseline contrast */
}

/* Centering container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

/* Card styling */
main.container {
    background-color: #DACDF2; /* lilac */
    border-radius: 12px;
    padding: 2.5rem 2rem;
    /* subtle elevation */
    box-shadow: 0 4px 12px rgba(10, 17, 40, 0.15);
}

/* Logo row container */
.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* consistent spacing */
    margin-bottom: 1rem;
    flex-wrap: wrap; /* prevents overflow on small screens */
}

/* Logo images */
.logo-row img {
    height: 140px;;          /* standardize size */
    width: auto;           /* preserve aspect ratio */
    max-width: 100%;
    object-fit: contain;
}

/* Base button style */
.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border-radius: 8px;
    
    min-width: 120px;
    
    background-color: #0A1128; /* navy */
    color: #F7F2F9; /* light text */
    
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    
    border: 2px solid #0A1128;
    
    transition: 
        background-color 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.1s ease;
}

.button:hover {
    background-color: #775ED3; /* purple */
}

.button:active {
    transform: translateY(1px);
}

.button:focus,
.button:focus-visible {
    outline: 3px solid #0A1128; /* navy */
    outline-offset: 2px;
}

.receipts-btn {
    background-color: #775ED3; /* purple */
    color: #F7F2F9;
}

.receipts-btn:hover {
    background-color: #0A1128; /* invert on hover */
}

nav[aria-label="State selection"] {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Skip link - hidden by default */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;

    background-color: #0A1128; /* navy */
    color: #F7F2F9; /* light text */

    padding: 0.5rem 1rem;
    border-radius: 6px;

    text-decoration: none;
    font-weight: 600;

    z-index: 1000;
    transition: top 0.2s ease;
}

/* Show on focus */
.skip-link:focus,
.skip-link:focus-visible {
    top: 10px;

    outline: 3px solid #EFE745; /* sunflower focus ring */
    outline-offset: 2px;
}

/* Secondary buttons (Receipts + Help) */
#receipts-btn,
#help-btn {
    background-color: #EFE745; /* sunflower */
    color: #0A1128; /* navy text */
    border: 2px solid #0A1128; /* ensures contrast definition */
}

#receipts-btn:hover,
#help-btn:hover {
    background-color: #775ED3; /* purple */
    color: #F7F2F9; /* switch to light text for contrast */
}

/* Select (dropdown) styling */
select {
    appearance: none;          /* removes default styling (modern browsers) */
    -webkit-appearance: none;
    -moz-appearance: none;

    padding: 0.6rem 2rem 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;

    border-radius: 8px;
    border: 2px solid #0A1128;

    background-color: #F7F2F9; /* light background */
    color: #0A1128;

    min-width: 200px; /* wider than buttons for readability */

    cursor: pointer;
}

select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%230A1128' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 16px;
}

select:focus,
select:focus-visible {
    outline: 3px solid #0A1128;
    outline-offset: 2px;
}

select:hover {
    background-color: #DACDF2; /* lilac */
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

form {
    margin-top: 1rem;
}

select {
    width: 300px;        /* enforce consistency */
    max-width: 100%;     /* prevents overflow on small screens */
}

select option {
    background-color: #FFFFFF;
    color: #0A1128;
}

select option:checked,
select option:hover {
    background-color: #DACDF2; /* lilac highlight */
    color: #0A1128;
}

select {
    background-color: #FFFFFF; /* keep control white */
}


























































/* Slight visual balance on smaller screens */

@media (max-width: 600px) {
    .logo-row img {
        height: 90px;
    }
}