/* --- General Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f4f9ff;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}


/* --- Top Contact Bar (Updated) --- */
.top-bar {
    background-color: #004e9b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.top-bar .top-left,
.top-bar .top-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.top-bar .top-left {
    justify-content: flex-start;
}

.top-bar .top-right {
    justify-content: flex-end;
}

.top-bar .top-center {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/*.top-bar img.top-logo {
    height: 30px;
    max-width: 100%;
}*/

/*.top-bar img.top-logo {
    max-height: 30px; 
    width: auto;
    height: auto;
    max-width: 100%;
}*/

.top-logo {
  width: 250px;
  height: auto;
  aspect-ratio: 300 / 70;
  display: block;
}

.top-bar a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-bar a img {
    height: 20px;
    vertical-align: middle;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0074d9;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar .logo {
    font-size: 22px;
    color: white;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    transition: background 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: #005fa3;
    border-radius: 5px;
}

/* --- Hamburger --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 2px;
}

/* --- Carousel --- */
.carousel-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel {
    position: relative;
    width: 100%;
}

.carousel-slide {
    width: 100%;
    display: none;
    height: 600px;
    object-fit: cover;
}

.carousel-slide.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 5;
    font-size: 18px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.carousel-dots .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dots .active {
    background-color: #717171;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 50px;
    height: 50px;
}

/* --- Form Section --- */
.form-section {
    padding: 30px 16px;
    background-color: white;
    max-width: 700px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
    text-align: center;
    color: #004e9b;
    margin-bottom: 20px;
    font-size: 26px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input[type="text"],
input[type="email"],
input[type="number"],
select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 16px;
}

button[type="submit"] {
    background-color: #0074d9;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #005fa3;
}

/* --- Messages --- */
.success-message,
.error-message {
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.success-message {
    background-color: #e6ffed;
    color: #207c3f;
}

.error-message {
    background-color: #ffe6e6;
    color: #c00;
}

footer {
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    color: #555;
}

.skip-link { 
        position: absolute;
        left: -999px;
        top: auto;
        width: 1px;
        height: 1px;
        overflow: hidden;
        z-index: -1;
    }
        
.skip-link:focus {
        position: absolute;
        left: 16px;
        top: 8px;
        width: auto;
        height: auto;
        background: #0074d9;
        color: white;
        padding: 8px 12px;
        z-index: 1000;
        text-decoration: none;
        border-radius: 4px; 
    }

/* Full-width hero error section */
.error-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f8fa; /* or match your site background */
    color: #e74c3c; /* theme error color */
    min-height: 60vh;
    text-align: center;
    padding: 80px 20px;
}

.error-container h1 {
    font-size: 100px;
    margin-bottom: 20px;
}

.error-container p {
    font-size: 28px;
    margin-bottom: 40px;
}

.btn-home {
    display: inline-block;
    padding: 15px 30px;
    background-color: #3498db; /* theme button color */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.btn-home:hover {
    background-color: #217dbb; /* darker shade on hover */
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 10px 16px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background-color: #0074d9;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 10px 0;
        border-radius: 0 0 8px 8px;
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .form-row {
        flex-direction: column;
    }

    .form-section {
        margin: 20px 10px;
        padding: 20px 12px;
    }

    .carousel-slide {
        height: 200px; /* Reduced height for mobile */
    }

    .carousel-btn {
        padding: 8px;
        font-size: 16px;
    }

    .form-section h2 {
        font-size: 22px;
    }

    input[type="text"],
    input[type="email"],
    input[type="number"],
    select {
        font-size: 15px;
        padding: 10px;
    }

    button[type="submit"] {
        font-size: 15px;
        padding: 12px;
    }

    .whatsapp-float img {
        width: 40px;
        height: 40px;
    }

    /* --- Responsive Top Bar --- */
    .top-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .top-bar .top-left,
    .top-bar .top-center,
    .top-bar .top-right {
        justify-content: center;
    }
}
