/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f5f5;
    color: #333;
    padding-top: 80px;            /* space for fixed navbar */
    overflow-x: hidden;
    line-height: 1.5;
}

/* Shared container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================= VARIABLES ================= */
:root {
    --primary-green: #207c4b;
    --white: #ffffff;
    --black: #000000;
}

/* ================= NAVBAR (shared) ================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.75rem 1.25rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--black);
    border-left: 1px solid var(--black);
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:first-child {
    border-left: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #000;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================= HERO ================= */

.hero {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffeb3b 50%, #ffffff 50%);
    padding: 70px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1 1 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    font-style: italic;
    color: #333;
    margin-bottom: 0.75rem;
}

.hero-text {
    font-size: 1.125rem;
    color: #333;
}

.hero-image {
    flex: 0 0 auto;
}

.truck-img {
    width: 360px;
    max-width: 100%;
    height: auto;
}

/* ================= MAIN CONTENT / FORMS ================= */

.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* Card sections */
.form-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 32px 40px;
    margin-bottom: 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
}

/* Grid for original / destination info */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 22px;
}

/* Each label + input pair */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 6px;
    text-decoration: underline;
}

.form-group input {
    border: none;
    border-bottom: 1px solid #333;
    padding: 6px 0;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
}

.form-group input:focus {
    border-bottom-color: #ffeb3b;
}

/* ================= PRODUCT + DELIVERY SECTION ================= */

.product-delivery {
    display: flex;
    gap: 60px;
}

.product-info,
.delivery-type {
    flex: 1 1 50%;
}

/* Size group (Height / Width) */
.size-group {
    margin-bottom: 24px;
}

.size-main-label {
    font-size: 0.82rem;
    color: #666;
    text-decoration: underline;
    margin-bottom: 10px;
    display: block;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 18px;
}

.size-item {
    display: flex;
    flex-direction: column;
}

.size-item label {
    font-size: 0.78rem;
    color: #555;
    text-decoration: none;
    margin-bottom: 4px;
}

.size-item input {
    border: none;
    border-bottom: 1px solid #333;
    padding: 6px 0;
    font-size: 0.9rem;
    background: transparent;
}

/* Delivery type radios */
.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
}

/* Submit */
.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 14px 72px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.submit-btn:hover {
    background: #555;
}

/* ================= FOOTER (shared) ================= */

.footer {
    background: #1D2125;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
}

.footer-contact p {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: #fdfdfd;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: #ffffff;
}

/* ================= TABLET ================= */

@media (max-width: 1024px) {
    .navbar-container {
        padding: 0.75rem 1.5rem;
    }

    .hero {
        padding: 56px 40px;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 520px;
    }

    .hero-image {
        margin-top: 20px;
    }

    .product-delivery {
        flex-direction: column;
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

    body {
        padding-top: 70px;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background: #ffffff;
        padding: 0.75rem 1.5rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 12px 12px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        border-left: none;
        border-bottom: 1px solid #ddd;
        width: 100%;
        text-align: center;
        padding: 0.9rem 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .main-content {
        padding: 32px 16px 48px;
    }

    .form-section {
        padding: 24px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .size-grid {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
