/* Critical styles for Fast RESCheck - Optimized */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.container, .success-container {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 75vw;
    box-sizing: border-box;
}

.success-container {
    max-width: 70vw;
    padding: 40px;
}

header {
    margin-bottom: 20px;
    padding: 10px;
}

.logo {
    width: 352px;  /* Base size for layout calculation */
    height: 73px;  /* Base size for layout calculation */
    max-width: 100%;
    border-radius: 5px;
    aspect-ratio: 352/73;
    object-fit: contain; /* Preserve aspect ratio */
}

/* Desktop: Much larger logo nearly touching container edges */
@media (min-width: 768px) {
    .logo {
        width: 95%;     /* Nearly fill container width */
        height: auto;   /* Maintain aspect ratio */
        max-width: 95%; /* Almost touch the edges */
    }
}

/* Large desktop: Full width logo */
@media (min-width: 1200px) {
    .logo {
        width: 98%;     /* Nearly full container width */
        height: auto;
        max-width: 98%; /* Very close to edges */
    }
}

h1 {
    color: #007bff;
    font-size: 36px;
}

/* Accessibility helper class */
.visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden !important;
    height: 1px !important;
    width: 1px !important;
    padding: 0 !important;
    border: 0 !important;
}

p {
    font-size: 18px;
    color: #333;
    margin-left: 10px;
    margin-right: 10px;
}

.promo {
    background-color: #FFCD68;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

/* Desktop: Make promo bubble match logo width exactly */
@media (min-width: 768px) {
    .promo {
        width: calc(95% - 20px);  /* Subtract left and right margins */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* Large desktop: Match larger logo width exactly */
@media (min-width: 1200px) {
    .promo {
        width: calc(98% - 20px);  /* Subtract left and right margins */
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

.promo p {
    font-weight: bold;
    margin: 0;
}

form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
    margin-left: 10px;
    margin-right: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

input[type="email"],
select,
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    background-color: #0056b3;  /* Darker blue for better contrast */
    color: #fff;
    border: none;
    padding: 12px 24px;  /* Increased padding for better accessibility */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;  /* Bolder text for better contrast */
    font-size: 16px;   /* Larger text for accessibility */
}

button:hover {
    background-color: #003d82;  /* Even darker on hover */
}

button:focus {
    outline: 3px solid #80bdff;
    outline-offset: 2px;
}

#checkbox-group label[for^="id_checkbox"] {
    font-weight: normal;
}

a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

form#checkout-form {
    margin-bottom: 50px;
}

form#checkout-form button {
    margin-top: 20px;
}

.pdf-container {
    column-width: 100%;
    column-gap: 0;
    width: 100%;
    overflow-x: hidden;
}

/* FAQ Section Styles */
.faq-section {
    margin-top: 40px;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.faq-section h2 {
    color: #007bff;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.faq-item h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 0;
}

.faq-item p {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    body {
        padding: 20px;
        min-height: 80vh;
    }
    
    .container {
        width: 90vw;
        max-width: 400px;
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    p {
        font-size: 16px;
    }
    
    .faq-section {
        margin-top: 30px;
        padding: 20px 15px;
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 14px;
    }
}
