/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0052cc; /* Professional Blue */
    --secondary-color: #0a996f; /* Trustworthy Green/Teal */
    --accent-color: #ffab00; /* Action Yellow/Orange */
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #495057;
    --heading-color: #212529;
    --white: #ffffff;
    --border-color: #dee2e6;

    --font-family: 'Poppins', sans-serif;
    --base-font-size: 16px;
    --line-height: 1.6;

    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    /* scroll-behavior: smooth; */
    font-size: var(--base-font-size);
}

body {
    display: flex; /* Use flexbox layout for the body */
    flex-direction: column; /* Stack elements vertically (header, main, footer) */
    min-height: 100vh; /* Make body at least the full viewport height */
    margin: 0; /* Remove default body margin */
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--white);
}

main {
    flex-grow: 1; /* Allow the main content area to grow and fill available space */
                  /* This pushes the footer down */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--secondary-color); }
ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-gray); }
.case-section { 
    max-width: var(--container-width);
    text-align: center; 
    margin-bottom: 1rem; 
    padding: 15px;
    margin: 0px 30% 20px 30%;
    /* background-color: var(--dark-gray);  */
}
.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; max-width: 600px; margin: 0 auto 50px auto; font-size: 1.1rem; color: #6c757d; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #0041a3; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: rgba(0, 82, 204, 0.1);
    transform: translateY(-2px);
}

.btn-lg { padding: 15px 35px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* --- Header --- */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}
.logo:hover { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--primary-color); }

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--heading-color);
}

/* --- Hero Section --- */
.hero {
    background: url('images/hero-background.jpg') no-repeat center center/cover; /* Use your generated image */
    background-color: var(--primary-color); /* Fallback color */
    color: var(--white);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before { /* Optional overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 52, 128, 0.6); /* Darker blue overlay */
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 3.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero .btn { margin: 0 10px; }
.hero .btn-primary { background-color: var(--accent-color); color: var(--heading-color); border-color: var(--accent-color); }
.hero .btn-primary:hover { background-color: #ffc400; box-shadow: 0 6px 20px rgba(255, 171, 0, 0.3); }
.hero .btn-secondary { color: var(--white); border-color: var(--white); }
.hero .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

.trust-signals {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.trust-signals span { font-weight: 600; opacity: 0.8; }
.client-logo {
    max-height: 35px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1); /* Make logos white */
    transition: opacity 0.3s ease;
}
.client-logo:hover { opacity: 1; }

/* --- Services Section --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.service-item img {
    max-height: 50px;
    margin: 0 auto 20px auto;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* --- Why Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}
/* .feature-item h3::before { Add icon if desired } */

/* --- Compliance Section --- */
.compliance {
    background-color: var(--secondary-color);
    color: var(--white);
}
.compliance-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.compliance-icon {
    max-width: 100px;
    flex-shrink: 0;
    filter: brightness(0) invert(1); /* Make icon white */
}
.compliance h2 { color: var(--white); }
.compliance p { opacity: 0.9; }
.learn-more-link {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}
.learn-more-link:hover { color: var(--accent-color); }

/* --- Testimonial Section --- */
.testimonial-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: center;
    position: relative;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: absolute;
    top: -40px; /* Position half outside */
    left: 50%;
    transform: translateX(-50%);
}
blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin-top: 30px; /* Space for avatar */
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 20px;
}
blockquote::before, blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}
blockquote::before { top: -10px; left: -10px; }
blockquote::after { bottom: -20px; right: -10px; }

cite {
    font-weight: 600;
    color: var(--heading-color);
    display: block;
}

/* --- CTA Section --- */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { max-width: 600px; margin: 0 auto 30px auto; opacity: 0.9; }
.cta-section .btn { margin: 10px; }
.cta-section .btn-primary { background-color: var(--accent-color); color: var(--heading-color); border: none; }
.cta-section .btn-primary:hover { background-color: #ffc400; box-shadow: 0 6px 20px rgba(255, 171, 0, 0.3); }
.cta-section .btn-secondary { color: var(--white); border-color: var(--white); }
.cta-section .btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }

/* --- Footer --- */
.footer {
    background-color: var(--dark-gray);
    color: #adb5bd; /* Lighter gray for text */
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.footer-about p { font-size: 0.9rem; margin-bottom: 1rem; }
.footer-links ul { padding-left: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: #adb5bd;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact a { color: #adb5bd; }
.footer-contact a:hover { color: var(--white); }

/* ==================
   Contact Section Styles
   ================== */

   .contact-section {
    /* Inherits section-padding */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 40px; /* Space between info and form */
    margin-top: 30px;
}

/* Make it two columns on larger screens */
@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr; /* Adjust ratio as needed */
        gap: 60px;
    }
}

.contact-info h3,
.contact-form-container h3 {
    margin-bottom: 15px;
    font-size: 1.4em;
    color: var(--primary-color, #007bff); /* Use existing primary color variable or fallback */
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info strong {
    color: var(--text-color-dark, #333); /* Use existing dark text color */
}

.contact-info a {
    color: var(--primary-color, #007bff);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Form Styles */
.contact-form-container .form-group {
    margin-bottom: 20px;
}

.contact-form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color-dark, #555);
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box; /* Include padding and border in element's total width/height */
    transition: border-color 0.3s ease;
}

.contact-form-container input[type="text"]:focus,
.contact-form-container input[type="email"]:focus,
.contact-form-container textarea:focus {
    border-color: var(--primary-color, #007bff);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2); /* Optional focus glow */
}

.contact-form-container textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.contact-form-container button[type="submit"] {
    /* Use existing button styles if possible */
    /* Example using existing classes: */
    /* padding: 12px 25px; */
    /* font-size: 1rem; */
    /* cursor: pointer; */
    /* transition: background-color 0.3s ease; */
    margin-top: 10px;
}

.contact-form-container button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* Form Status Message Styles */
.form-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.95em;
    text-align: center;
}

.form-status.success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}

/* Ensure section padding and background colors are consistent */
.section-padding {
    padding: 60px 0; /* Adjust as needed */
}

.bg-light {
    background-color: #f8f9fa; /* Adjust to match your light background */
}

.nav-datetime{
    font-size: small;
}

.hide{
    display: none !important;
}
/* Add any other necessary adjustments based on your existing styles */

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #495057; /* Slightly darker separator */
    font-size: 0.9rem;
    color: #6c757d;
}
.copyright p { margin-bottom: 0; }

/** upload section **/
.upload-section {
    padding: 40px 0; /* Consistent padding */
}
#upload-form { /* Keep form for structure */
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: #f9f9f9; /* Light background for the form area */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
#file-input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px; /* Reduced margin */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}
#file-input:disabled {
    background-color: #eee;
    cursor: not-allowed;
}
.file-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
}
#upload-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none; /* Hidden by default */
    text-align: center;
    margin: 0px 30% 20px 30%;
    /* max-width: 100vh; */
}
#upload-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}
#upload-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
#upload-status.info {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
    display: block;
}
/* Hide the original upload button or repurpose it */
#upload-button {
   display: none; /* Hide the button */
   /* Or style differently if repurposed */
   /* margin-top: 15px; */
}

.finish-button{
    text-align: center;
}

button:disabled,
button[disabled]{
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
  transition: all 0.3s ease;
  box-shadow: none;
  transform: none;
  filter: none;
  -webkit-filter: none;
  -moz-filter: none;
}

.comments-area{
    width: 100%;
    padding-top: 10px;
    background-color: #f9f9f9; /* Light background for the comments area */
}

#upload-comments{
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    :root { --base-font-size: 15px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero { padding: 100px 0 80px; }
    .hero h1 { font-size: 2.8rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .section-padding { padding: 60px 0; }
    .compliance-content { flex-direction: column; text-align: center; }
    .compliance-icon { margin-bottom: 20px; max-width: 80px;}
}

@media (max-width: 768px) {
    .navbar { position: relative; } /* Needed for absolute positioning of mobile menu */
    .nav-links {
        display: none; /* Hide links by default */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 15px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid var(--border-color);
        gap: 0;
    }
    .nav-links.active { display: flex; } /* Show when active class is added */
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a {
        display: block;
        padding: 12px 20px;
        width: 100%;
    }
     .nav-links a::after { display: none; } /* Hide underline effect on mobile */

    .nav-actions { /* Maybe hide login on small screens, adjust as needed */
         gap: 8px;
    }
     .nav-actions .btn-sm { padding: 6px 12px; font-size: 0.85rem;}

    .mobile-menu-toggle { display: block; /* Show hamburger icon */ }

    .hero h1 { font-size: 2.4rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero .btn-lg { padding: 12px 25px; font-size: 1rem; }
    .trust-signals { gap: 15px; }
    .client-logo { max-height: 25px; }

    .service-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-links ul { padding-left: 0; }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero { padding: 80px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero .btn { display: block; width: 80%; margin: 10px auto; }
    .section-padding { padding: 50px 0; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .testimonial-card { padding: 40px 20px 20px; }
    blockquote { font-size: 1.1rem; }
}