/* Header Styles */
.site-header {
    background-color: #1a3a5c;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    height: 28px;
    width: auto;
    display: block;
}

/* Adjust body and container for header */
body {
    padding-top: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #C8102E;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #C8102E;
    margin: 15px auto 30px;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #C8102E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #f8f8f8;
    padding: 30px;
    border: 2px solid #C8102E;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 0;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

.search-button {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background-color: #C8102E;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button:hover {
    background-color: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.search-button:active {
    transform: translateY(0);
}

.results-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #C8102E;
}

.results-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
    background-color: #f8f8f8;
    border: 2px dashed #ddd;
}

.result-item {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: #C8102E;
    box-shadow: 0 2px 12px rgba(200, 16, 46, 0.1);
}

.sds-files {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.sds-file {
    flex: 0 0 auto;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background-color: #f8f8f8;
    border: 2px solid #C8102E;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pdf-link:hover {
    background-color: #C8102E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.pdf-link:hover .pdf-icon {
    color: white;
}

.pdf-icon {
    width: 28px;
    height: 28px;
    color: #C8102E;
    transition: color 0.3s ease;
}

.file-info {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.file-info strong {
    font-weight: 700;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 2px;
}

.pdf-link:hover .country {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .sds-files {
        flex-direction: column;
    }
    
    .pdf-link {
        width: 100%;
    }
}

/* Loading animation for form submission */
.search-button:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Additional Lucas Oil styling elements */
select option {
    padding: 10px;
}

input::placeholder {
    color: #999;
    font-style: italic;
}

/* Accessibility improvements */
.form-group input:focus-visible,
.form-group select:focus-visible,
.search-button:focus-visible,
.pdf-link:focus-visible {
    outline: 3px solid #C8102E;
    outline-offset: 2px;
}