/* styles.css - Unified and Responsive Styles with Consistent Palette */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5; /* Light gray */
    color: #333333; /* Dark gray */
    line-height: 1.6;
}

/* Header - Consistent across all pages */
header {
    background-color: #0d3b66; /* Keep as is */
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo{
    min-width: 150px;
}
.logo a {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff; /* White */
    gap: 0.5rem;
}

.logo img{
    height: 32px
}

.logo-text{
    font-size: 1.35rem;
}
.nav-links {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #ffffff; /* White */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f9bc2f; /* Keep as is */
}

.cta-button {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    background-color: #ffffff; /* White */
    color: #0d3b66; /* Blue */
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #f9bc2f; /* Keep as is */
}

.lang-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 0.2rem;
    color: #0d3b66; /* Changed to blue */
}
.lang-switch {
    all: unset;
    background: none;
    color: #0d3b66; /* Changed to blue */
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-switch:hover {
    background-color: #e6e6e6; /* Light gray */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #ffffff; /* White */
}

main{
    min-height: 70vh;
}
/* Main Content Sections - Consistent styling */
section {
    padding: 3rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 40px;
    overflow-y: hidden;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
    min-height: 50vh;
}

h1, h2, h3 {
    color: #0d3b66; /* Blue */
    margin-bottom: 1.5rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    color: #ffffff; /* White */
    text-align: center;
    position: relative;
    width: 100%;
    min-height: 60vh;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover ;
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(13, 59, 102, 0.1); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.hero-inner {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}
.hero h1 {
    font-size: 2.5rem;
    color: #ffffff; /* White */
}

.hero p {
    font-size: 1.25rem;
    color: #ffffff; /* White */
}

.cta-hero {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff; /* White */
    color: #0d3b66; /* Blue */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-hero:hover {
    background-color: #f9bc2f; /* Keep as is */
}

/* Product/Service Cards */
.product-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #ffffff; /* White */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.text-content {
    padding: 1.5rem;
}

.text-content h3 {
    text-align: center;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    background: #ffffff; /* White */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: #666666; /* Medium gray */
}

/* Contact Section */
.contact {
    color: #0d3b66; /* Blue */
    text-align: center;
}

.contact h2 {
    color: #0d3b66; /* Blue */
}

/* Footer */
footer {
    background-color: #ffffff; /* White */
    color: #0d3b66; /* Blue */
    padding: 2rem 1rem;
    text-align: center;
    align-self: self-end;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #0d3b66; /* Blue */
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #f9bc2f; /* Keep as is */
}

/* Forms - Consistent styling across all pages */
form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff; /* White */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #0d3b66; /* Blue */
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #cccccc; /* Light gray */
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #0d3b66; /* Blue */
    outline: none;
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

.whistleblower-section{
    display: flex;
}
button[type="submit"],
.payment-btn,
.whistleblower-btn {
    padding: 0.75rem 1.5rem;
    background-color: #0d3b66; /* Blue */
    color: #ffffff; /* White */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    width: auto;
    display: block;
    margin: 0 auto;
}

button[type="submit"]:hover,
.payment-btn:hover,
.whistleblower-btn:hover {
    background-color: #1a5a8f; /* Darker blue */
}

.whistleblower-btn {
    all: unset;
    padding: 0.75rem 1.5rem;
    color: #0d3b66; /* Blue */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    width: auto;
    display: block;
    margin: 0 auto;
    text-decoration: underline;
}

.whistleblower-btn:hover {
    text-decoration: none;
    background-color: #e6e6e6; /* Light gray */
}

.payment-btn {
    margin-right: 0;
}

#creditCardBtn {
    background-color: #0d3b66; /* Blue */
}

#paypalBtn {
    background-color: #1a5a8f; /* Darker blue */
}

/* Special form elements */
.ip-display {
    background-color: #f5f5f5; /* Light gray */
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    border: 1px solid #cccccc; /* Light gray */
    font-family: monospace;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff; /* White */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #cccccc; /* Light gray */
}

th {
    background-color: #0d3b66; /* Blue */
    color: #ffffff; /* White */
}

tr:hover {
    background-color: #f5f5f5; /* Light gray */
}

/* Utility classes */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #0d3b66; /* Blue */
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
        gap: 0.5rem;
    }

    .nav-links li {
        margin: 0.5rem 0.5rem;
    }

    .nav-actions {
        min-width: 150px;
        display: flex;
        flex-direction: row;
    }

    .product-cards,
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }

    section {
        padding: 2rem 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .payment-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .payment-btn {
        margin-right: 0;
        width: 100%;
    }
}

#assist-message{
    margin: 1rem 0;
    padding: 0.5rem 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #cccccc; /* Light gray */
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f5f5f5; /* Light gray */
}
#totalBox {
    font-weight: bold;
    font-size: 1.2em;
    margin: 20px 0;
    padding: 10px;
    background-color: #f5f5f5; /* Light gray */
    border: 1px solid #cccccc; /* Light gray */
    width: 200px;
}

.services-list {
    list-style-type: none;
    margin: 20px auto;
    padding-left: 0;
    max-width: 800px;
}

.services-list li {
    padding: 10px 15px;
    margin-bottom: 12px;
    background-color: #f5f5f5; /* Light gray */
    border-left: 4px solid #1a5a8f; /* Darker blue */
    border-radius: 0 4px 4px 0;
    transition: transform 0.2s, background-color 0.2s;
}

.services-list li:hover {
    background-color: #e6e6e6; /* Lighter gray */
    transform: translateX(5px);
}

.services-list strong {
    color: #0d3b66; /* Blue */
    font-weight: 600;
}

/* Style for the safety section */
.safety-section {
    background-color: #f5f5f5; /* Light gray */
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid #1a5a8f; /* Darker blue */
    max-width: 800px;
    margin: 0 auto;
}

.about h3{
    max-width: 500px;
    margin: auto;
}

.get-in-touch{
    background-color: #0d3b66; /* Blue */
    color: #ffffff; /* White */
    text-align: center;
}
.get-in-touch h2{
    background-color: #0d3b66; /* Blue */
    color: #ffffff; /* White */
}
.get-in-touch .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Table container for horizontal scrolling on mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fixed table layout prevents column width changes */
#itemsGrid {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Define specific column widths with wider description column */
#itemsGrid th:nth-child(1),
#itemsGrid td:nth-child(1) {
    width: 10%; /* ID column (hidden) */
}

#itemsGrid th:nth-child(2),
#itemsGrid td:nth-child(2) {
    width: 15%; /* Service column */
}

#itemsGrid th:nth-child(3),
#itemsGrid td:nth-child(3) {
    width: 45%; /* Description column - now wider */
}

#itemsGrid th:nth-child(4),
#itemsGrid td:nth-child(4) {
    width: 15%; /* Unit Price column */
}

#itemsGrid th:nth-child(5),
#itemsGrid td:nth-child(5) {
    width: 15%; /* Quantity column */
    text-align: center;
}

#itemsGrid th:nth-child(6),
#itemsGrid td:nth-child(6) {
    width: 15%; /* Total column */
    text-align: right;
}

#itemsGrid th, 
#itemsGrid td {
    padding: 0.75rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #cccccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#itemsGrid th {
    background-color: #e6e6e6;
    color: #666666;
    font-weight: bold;
    position: sticky;
    top: 0;
}

#itemsGrid tr:hover {
    background-color: #f5f5f5;
}

.hidden {
    display: none;
}

.quantity-input {
    width: 80px;
    padding: 0.75rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    margin: 0 auto;
    display: block;
}

.quantity-input:focus {
    border-color: #0d3b66;
    outline: none;
}

#itemsGrid tfoot tr {
    background-color: #f5f5f5;
}

#itemsGrid tfoot td {
    font-weight: bold;
}

/* Notes cell styling */
.notes-row {
    background-color: #f5f5f5;
}

.notes-cell {
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
}

.notes-cell textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    min-height: 180px;
    margin-top: 5px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    display: block;
}

/* Mobile-specific adjustments */
/* Mobile-specific adjustments */
/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #itemsGrid {
        font-size: 14px;
        width: 100%;
        table-layout: auto;
        max-width: 100vw; /* Prevent horizontal overflow */
        overflow: hidden; /* Contain table within viewport */
    }
    
    #itemsGrid th, 
    #itemsGrid td {
        padding: 0.5rem;
        white-space: normal;
        word-wrap: break-word;
        font-size: 0.85rem; /* Reduce text size on mobile */
    }
    
    .quantity-input {
        width: 60px;
        padding: 0.5rem;
        font-size: 0.85rem; /* Reduce input text size */
    }
    
    /* Mobile: Let browser handle column widths */
    #itemsGrid th:nth-child(1),
    #itemsGrid td:nth-child(1),
    #itemsGrid th:nth-child(2),
    #itemsGrid td:nth-child(2),
    #itemsGrid th:nth-child(3),
    #itemsGrid td:nth-child(3),
    #itemsGrid th:nth-child(4),
    #itemsGrid td:nth-child(4),
    #itemsGrid th:nth-child(5),
    #itemsGrid td:nth-child(5),
    #itemsGrid th:nth-child(6),
    #itemsGrid td:nth-child(6) {
        width: auto;
    }
    
    /* Notes adjustments for mobile - FIXED */
    .notes-cell {
        padding: 0.5rem;
        display: table-cell; /* Keep as table cell to maintain full width */
        width: 100%; /* Ensure it spans the full width */
        font-size: 0.85rem; /* Reduce notes text size */
    }
    
    .notes-cell textarea {
        padding: 0.5rem;
        min-height: 150px;
        width: 100%;
        font-size: 0.85rem; /* Reduce textarea text size */
    }
    
    /* Ensure notes row spans full width */
    #itemsGrid tfoot tr.notes-row td {
        display: table-cell; /* Keep as table cell */
        width: 100%; /* Ensure it spans the full width */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Additional fix to prevent horizontal scrolling issues */
    .container {
        overflow-x: hidden; /* Prevent container from causing horizontal scroll */
    }
    
    /* Reduce all text in table to smaller size */
    #itemsGrid small {
        font-size: 0.85rem; /* Consistent small text size */
    }
}