/* ================= ROOT VARIABLES ================= */
:root {
    --primary: #1c5c9e;
    --secondary: #65b891;
    --dark: #000;
    --white: #fff;
    --text-dark: #333;
    --overlay: rgba(0, 0, 0, 0.718);
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* From Uiverse.io by KSAplay */
.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader::before,
.loader::after {
    position: absolute;
    content: "";
    height: 8em;
    width: 8em;
    border: 1em solid #0060fa;
    border-radius: 50%;
    animation: loader_79178 2s linear infinite;
}

.loader::after {
    opacity: 0;
    animation-delay: 1s;
}

@keyframes loader_79178 {
    0% {
        border: 1em solid #0060fa;
        transform: scale(0);
        opacity: 1;
    }

    100% {
        border: 0 solid #0060fa;
        transform: scale(1);
        opacity: 0;
    }
}

/* new */

/* ===== GLOBAL LOADER OVERLAY ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.463);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* Mobile friendly */
@media (max-width: 768px) {
    .loader {
        width: 38px;
        height: 38px;
        border-width: 4px;
    }
}



.main-btn {
    background: var(--secondary);
    color: var(--white);
    border-radius: 50px;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.main-btn:hover {
    background: var(--primary);
    color: white;
}


body {
    font-family: 'Segoe UI', sans-serif;
}

a {
    text-decoration: none;
}


.dropdown-toggle::after {
    display: none !important;
}

.section-padding {
    padding: 60px 0;
}

.section-heading {
    color: var(--primary);
    font-weight: 600;
}

.section-span {
    color: var(--secondary)
}

/* ================= NAVBAR ================= */
.custom-nav {
    padding-top: 30px;
    transition: background 0.4s ease, padding 0.3s ease;
}

.nav-link {
    color: white;
    font-weight: 600;
}

.logo {
    width: 160px;
}

.custom-nav.scrolled {
    /* background: var(--dark); */
    background-color: rgba(0, 0, 0, 0.463);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 15px;
}

/* ================= HERO ================= */
.hero-section {
    height: 74vh;
    background: url('assets/images/img3.png') center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    border-radius: var(--radius-lg);
    overflow: visible;
    z-index: 0;
}

.overlay {
    position: absolute;
    inset: 0;
    /* background: var(--overlay); */
    background: #021425ce;
    border-radius: var(--radius-lg);
}

.hero-content {
    position: relative;
    color: var(--white);
    max-width: 800px;
    text-align: center;
}

.hero-content h1 {
    font-size: 56px;
    margin: 10px 0;
}

.hero-content p {
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ================= SEARCH ================= */
.search-box {
    display: flex;
}

.search-box input,
.search-box select {
    border: none;
    padding: 14px 16px;
    width: 100%;
    outline: none;
}

.search-box button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0 28px;
    font-weight: 600;
}

.search-box .position-relative {
    position: relative;
}



.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 320px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-title {
    font-weight: 600;
    font-size: 14px;
    color: #1c5c9e;
}

.suggestion-meta {
    font-size: 12px;
    color: #666;
}


/* ================= CATEGORY BAR ================= */
.category-bar {
    position: absolute;
    display: flex;
    gap: 40px;
    padding: 20px 40px;
    border-radius: var(--radius-md);
    /* bottom: 90px; */
    bottom: -40px;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 10;
}

.category-item {
    text-align: center;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-item i {
    font-size: 30px;
    display: block;
    margin-bottom: 5px;
    background: var(--secondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--white);
}

.category-item span {
    font-size: 14px;
    color: var(--text-dark);
}

.category-item:hover {
    transform: translateY(-6px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 38px;
    }

    .search-box {
        flex-direction: column;
    }

    .category-bar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 20px;
    }

    .hero-section {
        margin: 0px;
        height: 80vh;
        border-radius: 0;
    }

    .overlay {
        border-radius: 0;
    }

    .navbar {
        background-color: rgba(0, 0, 0, 0.463);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }


    .navbar .container {
        padding: 0 10px;
    }

    .hero-section input,
    select,
    button {
        border-radius: 6px !important;
        height: 50px;
        margin-bottom: 6px;
    }

    .mobile-user-toggel {
        display: flex !important;
    }

    .navbar-collapse {
        padding: 30px;
    }

    .modal-content {
        padding: 15px;
    }

}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='black' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* ================= AVAILABLE TANKERS ================= */

/* Tanker Card */
.tanker-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.tanker-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

/* Hover */
.tanker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.tanker-card:hover img {
    transform: scale(1.05);
}

/* Body */
.tanker-body {
    padding: 14px 16px;
}

.tanker-body h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

/* Quantity */
.quantity {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

/* Description (2 lines only) */
.desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta */
.tanker-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

.time {
    font-size: 13px;
    color: #555;
}

.time i {
    margin-right: 3px;
}

/* Button */
.book-btn {
    background: var(--secondary);
    color: var(--white);
    border-radius: 20px;
    font-weight: 600;
    padding: 7px 10px;
    /* SMALLER BUTTON */
    font-size: 14px;
    transition: 0.3s;
}

.book-btn:hover {
    background: var(--primary);
    color: var(--white);
}


/* Wizard Modal - Light Theme */
.modal-content {
    background: var(--white);
    border: none;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 30px;
}

.wizard-sidebar {
    background: #f9f9f9;
    border-right: 1px solid var(--border-color);
    padding: 2.5rem;
}

.wizard-main {
    padding: 2.5rem;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
}

.step-circle.active,
#prevBtn {
    background: var(--primary);
    color: white;
}

.tanker-option {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    color: var(--text-main);
}

.tanker-option:hover {
    border-color: var(--text-main);
    background: #fafafa;
}

.tanker-option.selected {
    border-color: var(--text-main);
    background: #f4f4f4;
    box-shadow: inset 0 0 0 1px var(--text-main);
}

.usage-chip {
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-muted);
    margin: 0.35rem;
    font-weight: 500;
    transition: all 0.2s;
}

.usage-chip:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.usage-chip.selected,
#nextBtn {
    background: var(--secondary);
    color: white;
}

.address-card {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.address-card:hover {
    border-color: var(--primary);
}

.address-card.active {
    border-color: var(--secondary);
    background: #f0f7ff;
    position: relative;
}

.address-card.active::after {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--secondary);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}

.dropdown-menu[data-bs-popper] {
    left: 0 !important;
}


/* booking success */
.booking-success {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    /* adds frosted glass effect */
}

.success-card {
    position: relative;
    background: white;
    /* padding: 30px 24px; */
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transition: transform 0.3s;
}

.success-card img {
    width: 180px;
    margin-bottom: 16px;
    animation: bounce 1s infinite alternate;
}

.success-card h2 {
    font-weight: 700;
    color: #155724;
    margin-bottom: 8px;
    font-size: 1.6rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.success-card p {
    color: #155724;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Close button */
.success-card .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    color: #155724;
    cursor: pointer;
    transition: color 0.3s;
}

.success-card .close:hover {
    color: #d9534f;
}

/* Animations */
@keyframes popIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}