/* Basic Reset & Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

a {
    color: #0071dc; /* Walmart Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #333;
    margin-top: 0;
    font-weight: 500;
}

/* Header Styles */
.header {
    background-color: #0071dc;
    padding: 20px 0;
    border-bottom: 4px solid #ffc220;
    color: #fff;
}

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

.header .logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.header .logo-image {
    height: 40px;
    width: 40px; /* Make width same as height for square aspect */
    margin-right: 10px;
    vertical-align: middle;
}

.header .logo-text {
    font-size: 24px;
    font-weight: bold;
    vertical-align: middle;
}

/* Main Content Area */
main {
    padding: 30px 0;
}

.content-section {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #0071dc;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 22px;
}

/* Query Form Styles */
.query-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.query-form input[type="text"],
.query-form input[type="password"],
.query-form input[type="tel"],
.query-form input[type="number"],
.query-form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: white;
}

.query-form input[type="text"]:focus,
.query-form input[type="password"]:focus,
.query-form input[type="tel"]:focus,
.query-form input[type="number"]:focus,
.query-form select:focus {
    border-color: #0071dc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 220, 0.2);
}

.query-form .captcha-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 10px;
    margin-bottom: 20px;
}

.query-form .captcha-input {
    /* --- CHANGE HERE --- */
    width: 150px; /* Adjust this width as needed for ~6 characters + padding */
    /* Removed flex properties like flex-grow and flex-basis */
    flex-shrink: 0; /* Prevent shrinking too much */
    margin-bottom: 0;
    margin-right: 0; /* Using gap for spacing */
}

.query-form .captcha-display-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Should match input height */
    min-width: 120px; /* Adjust if needed based on captcha length/font */
    padding: 0 10px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    flex-shrink: 0; /* Prevent shrinking */
}

.query-form #captcha-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    letter-spacing: 5px;
    text-decoration: line-through;
    user-select: none;
    font-weight: bold;
    color: #555;
    line-height: 1; /* Better vertical alignment */
}

.query-form .refresh-captcha-link {
    color: #0071dc;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    white-space: nowrap;
    flex-shrink: 0;
}
.query-form .refresh-captcha-link:hover {
    color: #005ea6;
}

.query-form .submit-button {
    background-color: #ffc220;
    color: #333;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
    width: 100%; /* Full width on small screens */
}

@media (min-width: 769px) {
    .query-form .submit-button {
        width: auto;
    }
}

.query-form .submit-button:hover {
    background-color: #e6af1e;
}

/* Form Notice Styles */
.form-notice {
    color: #dc3545;
    font-size: 14px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-notice i {
    font-size: 16px;
}

/* Payment Notice Styles */
.payment-notice {
    color: #0071dc;
    font-size: 14px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: rgba(0, 113, 220, 0.1);
    border-radius: 4px;
}

.payment-notice i {
    font-size: 16px;
}

/* Error Message Styling */
#form-error {
    color: red;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
    width: 100%;
}

.query-form input.input-error {
    border-color: red;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* Info Section Styles */
.info-section p, .info-section ul, .info-section ol {
    margin-bottom: 15px;
    color: #555;
}
.info-section ul, .info-section ol {
    padding-left: 25px;
}
.info-section li {
    margin-bottom: 8px;
}

/* Footer Styles */
.footer {
    background-color: #e9e9e9;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid #ccc;
    color: #666;
    font-size: 12px;
    text-align: center;
}

.footer .footer-links {
    margin-bottom: 15px;
}

.footer .footer-links a {
    color: #666;
    margin: 0 10px;
    white-space: nowrap;
}

.footer .footer-links a:hover {
    color: #0071dc;
}

.footer .copyright {
    margin-top: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header .container {
        justify-content: center;
    }

    .header .logo-image {
        height: 30px;
        width: 30px;
    }
    .header .logo-text {
        font-size: 20px;
    }

    .footer .footer-links a {
        margin: 0 5px;
    }
}

/* Further adjustments for smaller screens if needed */
@media (max-width: 480px) {
     /* No changes needed here from the previous version,
        as flex-wrap: wrap will stack items if they don't fit */

    .footer .footer-links a {
        display: block;
        margin: 5px 0;
    }
}

/* Nav Tabs Styles */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.nav-tab {
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tab i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.nav-tab:hover {
    color: #0071dc;
}

.nav-tab.active {
    color: #0071dc;
    border-bottom-color: #0071dc;
    font-weight: bold;
}

/* Tab Content Styles */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}