/* TemanMaju Logistics Styles */
:root {
    --primary: #00257D;
    --secondary: #a42323;
    --light: #F9FBFF;
    --dark: #00081A;
    --gray: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

html, body {
  height: 100%;
  margin: 0;
}

main {
  flex: 1;
}

.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure this is on top */
}

.navbar {
    background-color: transparent;
    padding: 1.5rem 2rem;
    transition: background-color 0.3s ease;
    position: relative;
    width: 100%;
    z-index: 1;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

/* PC Layout buat Navbar */
@media (min-width: 992px) {
    .navbar {
        position: absolute;
        top: 0;
    }
    .navbar .container-fluid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        text-align: center;
        padding: 0;
    }

    .navbar-expand-lg .navbar-collapse {
        flex-grow: 0;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-nav.custom-nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.5rem;
        column-gap: clamp(1rem, 8vw, 5rem);
        width: 100%;
    }
}


/* Logo Styling */
.navbar-logo {
    height: 70px;
    width: auto;
}

@media (min-width: 992px) {
    .navbar-logo {
        height: 80px;
    }
}

/* Navigation Link Styling - Hover effect */
.navbar .navbar-nav .nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 0;
}

.navbar .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background-color: var(--primary);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.navbar .navbar-nav .nav-link:hover {
    color: white;
}

.navbar .navbar-nav .nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* --- KHUSUS MOBILE --- */


@media (max-width: 991.98px) {
    .mobile-navbar-header {
        top: 0;
        left: 0;
        width: 100%;
        padding: 1rem 1.8rem;
        z-index: 1060;
        background-color: rgba(0, 37, 125, 1) !important; /* BYE GANTI" WARNA */
        transition: background-color 0.3s ease; /* Buat smooth background change */
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile header background waktu menu kebuka */
    .mobile-navbar-header.menu-open {
        background-color: var(--primary) !important;
    }

}


/* Full-screen overlay */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary);
        padding-top: 6rem;
        padding-bottom: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
    }

    .navbar-collapse.show {
        transform: translateX(0); /* Slide into view */
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s;
        transition-delay: 0s, 0s, 0s;
    }
    .navbar-collapse:not(.show) {
        transition-delay: 0s, 0s, 0.3s;
    }
}

/* Style buat hamburger icon */
.navbar-toggler {
    border: none;
    padding: 0;
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    background-color: transparent;
    z-index: 1070;
}

/* Animasi dari hamburger ke X */
.navbar-toggler-icon {
    background-image: none !important;
    display: block;
    position: relative;
    height: 2px;
    width: 100%;
    background: white;
    transition: all 0.3s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    transition: all 0.3s ease-in-out;
    left: 0;
}

.navbar-toggler-icon::before {
    transform: translateY(-8px);
}

.navbar-toggler-icon::after {
    transform: translateY(8px);
}


.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 2rem;
        gap: 0.7rem;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-collapse.show .navbar-nav .nav-link {
        color: white;
        font-size: 1rem;
        padding: 0.75rem 2rem;
        gap: 0.7rem;
        display: block;
        border-radius: 999px;
        transition: background-color 0.2s ease, font-size 0.3s ease;
    }


    .navbar-collapse .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.75rem 2rem;
        display: block;
    }

    .navbar-collapse.show .navbar-nav .nav-item {
        margin-bottom: 1rem;
    }

    .navbar-collapse.show .navbar-nav .nav-link::before {
        display: block;
        opacity: 0;
        transform: scale(0.8);
    }
    .navbar-collapse.show .navbar-nav .nav-link:hover {
        background-color: transparent;
    }
    .navbar-collapse.show .navbar-nav .nav-link:hover::before {
        opacity: 1;
        transform: scale(1);
    }
}

/* INDEX START */

/* Hero */
.hero {
    background: url('img/hero.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.full-height {
    height: 100vh;
    min-height: 500px;
}

.header-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 15vh;
    text-align: center;
}

.header-banner img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.header-banner h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-paragraph {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.header-banner .container>div>*:not(:last-child) {
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 700px) {
    .banner-paragraph {
        font-size: 1rem;
        line-height: 1.4;
        font-weight: 300;
        margin-top: 2.5rem;
    }

    .btn-secondary {
        font-weight: 300;
        font-size: 0.9rem;
        padding: 1rem 2rem;
    }

    /*.should-be-wrapper {*/
    /*    margin-top: 5%;*/
    /*}*/

    .header-banner .container {
        padding-top: 4vh;
    }
}

/* About */
.about-logo {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    margin-bottom: -2rem;
}

.about-logo img {
    max-width: 200px;
    height: auto;
}

.about {
    background: var(--light);
    padding: 4rem 2rem;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.about-video-wrapper {
    flex: 1 1 350px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.about-text {
    flex: 1 1 350px;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
}

.feature-item strong {
    font-size: 1.1rem;
    color: var(--dark);
}

.feature-item p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}

/* About Responsive */
@media (min-width: 768px) {
    .features {
        flex-direction: row;
    }

    .feature-item {
        flex: 1;
        text-align: left;
    }

    .about-text h2 {
        font-size: 2.4rem;
    }
}

/* Timeline */
.timeline {
    padding: 2rem;
}

.timeline-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap
}

.timeline-steps .timeline-step {
    align-items: center;
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 1rem
}

.timeline-steps .timeline-content {
    width: 10rem;
    text-align: center
}

.timeline-steps .timeline-content i {
    height: 1rem;
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.timeline h2 {
    color: var(--primary);
}

.timeline p {
    color: var(--dark);
}

/* Timeline Responsive */
@media (min-width:768px) {
    .timeline-steps .timeline-step:not(:last-child):after {
        content: "";
        display: block;
        border-top: .25rem dotted var(--primary);
        width: 3.46rem;
        position: absolute;
        left: 7.5rem;
        top: .3125rem
    }

    .timeline-steps .timeline-step:not(:first-child):before {
        content: "";
        display: block;
        border-top: .25rem dotted var(--primary);
        width: 3.8125rem;
        position: absolute;
        right: 7.5rem;
        top: .3125rem
    }
}

/* Services */
.services {
    background: url('img/your-background.jpg') no-repeat center center;
    background-size: cover;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-title {
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: bold;
}

.services h5,
.services h2 {
    color: white;
    margin-bottom: 1rem;
}

.services h3 {
    color: var(--primary);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* Services Card */
.card {
    background: var(--light);
    color: var(--primary);
    border-radius: 20px;
    width: 300px;
    padding: 1rem;
    text-align: center;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.4s ease;
    max-height: 370px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.card-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
    font-size: 0.95rem;
    color: black;
    margin-top: 1rem;
}

.delivery-time {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E6EAF8;
    color: #00257D;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    margin: 0 16px 16px 16px;
}

.expand-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

/* Services Expanded state */
.card.expanded {
    max-height: 1000px;
}

.card.expanded .card-details {
    opacity: 1;
    max-height: 300px;
}

.card.expanded .expand-toggle {
    transform: rotate(180deg);
}

/* Services Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

/* Gallery */
.gallery {
    background-color: var(--light);
    padding: 2rem 1rem 4rem;
    overflow: hidden;
}

.gallery-title {
    font-size: 2.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-slider {
    overflow: hidden;
}

.gallery-images {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.gallery-images img {
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 0.5rem;
}

/* Gallery Animation */
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Gallery Responsive */
@media (max-width: 1024px) {
    .gallery-images img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-images img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery-images img {
        height: 140px;
    }
}

/* Track */
.tracking {
    background-color: #002f86;
    color: var(--light);
    padding: 0;
    display: flex;
    overflow: hidden;
}

.tracking-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.tracking-left {
    width: 45%;
    height: 100%;
    flex-shrink: 0;
}

.tracking-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tracking-right {
    width: 55%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 4rem;
    background-color: #002f86;
    overflow-y: auto;
}

.tracking-right-inner {
    max-width: 600px;
    color: #fff;
}

.subtitle {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tracking-right h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.desc {
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
}

/* Track Responsive */
@media (max-width: 1024px) {
    .tracking-right {
        padding: 3rem;
    }

    .tracking-right h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .tracking-container {
        flex-direction: column;
        height: auto;
    }

    .tracking-left {
        width: 100%;
        height: auto;
    }

    .tracking-right {
        width: 100%;
        padding: 2rem;
        text-align: center;
    }

    .btn-secondary {
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .tracking-right h2 {
        font-size: 1.75rem;
    }

    .desc {
        font-size: 0.95rem;
    }
}

/* Calculator */
.cta {
    background: linear-gradient(to right, #002f86 50%, #ffffff 50%);
    display: flex;
    justify-content: center;
    padding: 0;
}

.cta-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.cta-left {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.cta-left h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #F9FBFF;
}

.btn-secondary {
    background-color: #b72025;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: #b72025;
}

.cta-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-right img {
    width: 130%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

/* Calculator Responsive */
@media (max-width: 768px) {
    .cta {
        background: #002f86;
        flex-direction: column;
    }

    .cta-container {
        flex-direction: column;
    }

    .cta-right {
        order: -1;
        background: var(--light);
    }

    .cta-right img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .cta-left {
        text-align: center;
        align-items: center;
        padding: 2rem 1rem;
    }

    .cta-left h2 {
        font-size: 1.75rem;
    }
}

/* Contact */
.contact {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.contact-overlay {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-content h2 {
    font-size: 2.5rem;
    color: var(--light);
    margin: 0;
}

.btn-primary {
    background-color: #002f86;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: 0.3s ease;
    align-self: flex-start;
}

.btn-primary:hover {
    background-color: white;
    color: #002f86;
}

/* Contact Responsive */
@media (max-width: 768px) {
    .contact-content {
        align-items: center;
        text-align: center;
    }

    .btn-primary {
        align-self: center;
    }

    .contact-content h2 {
        font-size: 1.8rem;
    }
}

/* INDEX END */

/* TRACK START */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Search Form */
.search-container {
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px;
    max-width: 500px;
    width: 100%;
    transition: all 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-control.search-input {
    border: none;
    background: transparent;
    padding-left: 20px;
    font-size: 1rem;
    height: 50px;
}

.form-control.search-input:focus {
    box-shadow: none;
    outline: none;
}

.btn-search {
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50px;
    padding: 10px 20px;
    border: none;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: var(--primary);
    transform: scale(1.05);
}

/* Timeline */
.tracking-detail {
    padding: 3rem 0;
}

#tracking {
    margin-bottom: 1rem;
}

[class*="tracking-status-"] p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--light);
    text-transform: uppercase;
    text-align: center;
}

[class*="tracking-status-"] {
    padding: 1.6rem 0;
}

.tracking-list {
    border: 1px solid var(--light);
}

.tracking-item {
    border-left: 4px solid var(--primary);
    position: relative;
    padding: 2rem 1.5rem 0.5rem 2.5rem;
    font-size: 0.9rem;
    margin-left: 3rem;
    min-height: 5rem;
}

.tracking-item:last-child {
    padding-bottom: 4rem;
}

.tracking-item .tracking-date {
    margin-bottom: 0.5rem;
}

.tracking-item .tracking-date span {
    color: #888;
    font-size: 85%;
    padding-left: 0.4rem;
}

.tracking-item .tracking-content {
    padding: 0.5rem 0.8rem;
    background-color: #f4f4f4;
    border-radius: 0.5rem;
}

.tracking-item .tracking-content span {
    display: block;
    color: #767676;
    font-size: 13px;
}

.tracking-item .tracking-icon {
    position: absolute;
    left: -0.7rem;
    width: 1.1rem;
    height: 1.1rem;
    text-align: center;
    border-radius: 50%;
    font-size: 1.1rem;
    background-color: #fff;
    color: #fff;
}

.tracking-item-pending {
    border-left: 4px solid #d6d6d6;
    position: relative;
    padding: 2rem 1.5rem 0.5rem 2.5rem;
    font-size: 0.9rem;
    margin-left: 3rem;
    min-height: 5rem;
}

.tracking-item-pending:last-child {
    padding-bottom: 4rem;
}

.tracking-item-pending .tracking-date {
    margin-bottom: 0.5rem;
}

.tracking-item-pending .tracking-date span {
    color: #888;
    font-size: 85%;
    padding-left: 0.4rem;
}

.tracking-item-pending .tracking-content {
    padding: 0.5rem 0.8rem;
    background-color: #f4f4f4;
    border-radius: 0.5rem;
}

.tracking-item-pending .tracking-content span {
    display: block;
    color: #767676;
    font-size: 13px;
}

.tracking-item-pending .tracking-icon {
    line-height: 2.6rem;
    position: absolute;
    left: -0.7rem;
    width: 1.1rem;
    height: 1.1rem;
    text-align: center;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #d6d6d6;
}

.tracking-item-pending .tracking-content {
    font-weight: 600;
    font-size: 17px;
}

.tracking-item .tracking-icon.status-current {
    width: 1.9rem;
    height: 1.9rem;
    left: -1.1rem;
}

.tracking-item .tracking-icon.status-intransit {
    color: var(--primary);
    font-size: 0.6rem;
}

.tracking-item .tracking-icon.status-current {
    color: var(--primary);
    font-size: 0.6rem;
}

@media (min-width: 992px) {
    .tracking-item {
        margin-left: 10rem;
    }

    .tracking-item .tracking-date {
        position: absolute;
        left: -10rem;
        width: 7.5rem;
        text-align: right;
    }

    .tracking-item .tracking-date span {
        display: block;
    }

    .tracking-item .tracking-content {
        padding: 0;
        background-color: transparent;
    }

    .tracking-item-pending {
        margin-left: 10rem;
    }

    .tracking-item-pending .tracking-date {
        position: absolute;
        left: -10rem;
        width: 7.5rem;
        text-align: right;
    }

    .tracking-item-pending .tracking-date span {
        display: block;
    }

    .tracking-item-pending .tracking-content {
        padding: 0;
        background-color: transparent;
    }
}

.tracking-item .tracking-content {
    font-weight: 600;
    font-size: 17px;
}

.blinker {
    border: 7px solid --light;
    animation: blink 1s;
    animation-iteration-count: infinite;
}

@keyframes blink {
    50% {
        border-color: var(--light);
    }
}

/* TRACK END */

/* CALCULATOR START */
.full-center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 70vh;
}

.dropdown-label {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.dropdown {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.dropdown-toggle {
    padding: 0.6rem 0.8rem;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-toggle::after {
    display: none;
}
.dropdown-toggle .chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-left: 10px;
}

.dropdown-toggle[aria-expanded="true"] .chevron {
    transform: rotate(-135deg);
}


.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 120px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    padding: 0;
}

.dropdown-menu input {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    outline: none;
}

.dropdown-item {
    padding: 0.6rem 0.8rem;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item:hover {
    background-color: var(--light);
}

.dropdown-item.active {
    background-color: var(--primary);
    color: white;
}

.dropup, .dropend, .dropdown, .dropstart { position: relative; }


.dropdown-menu[data-bs-popper] {
    top: 100%;
    left: 0;
    margin-top: .125rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 180px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  display: none;
  z-index: 100;
  padding: 0;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu input {
    width: calc(100% - 1.6rem);
    margin: 0.5rem 0.8rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.dropdown-menu input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 35, 126, 0.25);
}

.dropdown-menu .dropdown-item:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.form-label{
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.shipment-btn {
  border: 1px solid #ccc;
  border-radius: 8px !important;
  background-color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  transition: all 0.2s ease-in-out;
}

.shipment-btn.active {
  background-color: var(--primary);
  color: white;
}

.shipment-btn:hover {
  background-color: var(--primary);
  color: white;
}

.shipment-btn:focus {
  outline: none;
  box-shadow: none;
}

.load-btn {
  border: 1px solid #ccc;
  border-radius: 8px !important;
  background-color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  transition: all 0.2s ease-in-out;
}

.load-btn.active {
  background-color: var(--secondary);
  color: white;
}

.load-btn:hover {
  background-color: var(--secondary);
  color: white;
}

.load-btn:focus {
  outline: none;
  box-shadow: none;
}

.contact-btn {
  background-color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px !important;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s ease-in-out;
  font-size: 18px;
}

.contact-btn:hover {
  background-color: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.contact-btn:focus {
  outline: none;
  box-shadow: none;
}

.cbm-input {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  width: 100%;
  color: #333;
  font-size: 1rem;
}

.cbm-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 48, 135, 0.25);
  border-color: var(--primary);
}

.alert{
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .center-wrapper {
    max-width: 100%;
    padding: 0 1rem;
  }

  .d-flex.gap-3 {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .shipment-btn,
  .load-btn,
  .contact-btn {
    width: 100%;
    text-align: center;
    justify-content: center !important;
  }

  .dropdown-toggle {
    padding: 0.6rem 1rem;
  }

  .dropdown-menu input {
    font-size: 0.95rem;
  }

  .cbm-input {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .alert {
    font-size: 1rem;
    text-align: center;
  }

  .dropdown-item {
    font-size: 0.95rem;
  }

  .form-label,
  .dropdown-label {
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .center-wrapper {
    max-width: 90vw;
  }
}
/* CALCULATOR END */

/* UNIVERSAL COMPONENT */
/* Header */
.page-header {
    background-color: var(--primary);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 2.5rem 3rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    height: 60px;
}

.footer-container p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
    text-align: center;
    flex: 1;
}

.socials {
    display: flex;
    gap: 2.5rem;
}

.socials a {
    color: var(--light);
    font-size: 1.5rem;
    transition: color 0.3s ease;
    cursor: pointer;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-container p {
        order: 3;
    }
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}
