/* GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* (mobile overrides consolidated into the main responsive block further below) */

/* Responsive: screens up to 700px */
/* (moved to file end to ensure rules cascade last) */

html {
    
    scroll-behavior: smooth;
}

body {
    background: #0A0F1C; /* Navy/charcoal background */
    color: white;
}

h1 {

    color: black;
}

body.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0A0F1C 0%, #111827 100%);
}

.login-main {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-container {
    background: #ffffff;
    color: #111827;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 100%;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 28px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-container input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #111827;
    font-size: 15px;
}

.login-container input:focus {
    outline: none;
    border-color: #4CFFDF;
    box-shadow: 0 0 0 3px rgba(76, 255, 223, 0.2);
}

.login-container button {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #4CFFDF 0%, #0ea5a8 100%);
    color: #07101D;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 4px;
}

.login-container button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(14, 165, 168, 0.24);
}

.login-container a {
    display: inline-block;
    margin-top: 14px;
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
}

.login-container a:hover {
    text-decoration: underline;
}

/* ORDER FORM FLOW */
.order-flow-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    text-align: left;
}

.order-flow-form label {
    display: block;
    font-weight: 600;
    color: #e6fffb;
    margin-bottom: 0 !important;
    padding-bottom: 200px;
    text-align: left;
}

.order-flow-form input,
.order-flow-form select,
.order-flow-form textarea {
    width: 100%;
    padding: 10px 12px;
    padding-bottom: 200px;
    margin-bottom: 0 !important;
    border: 1px solid #4CFFDF;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
}

.order-flow-form input:focus,
.order-flow-form select:focus,
.order-flow-form textarea:focus {
    outline: none;
    border-color: #72FFE6;
    box-shadow: 0 0 0 3px rgba(76, 255, 223, 0.18);
}

.order-flow-form textarea {
    min-height: 90px;
    resize: vertical;
}

.order-flow-form h4 {
    color: #4CFFDF;
    margin: 8px 0 4px;
}

.order-flow-form .checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
}

.order-flow-form .checkbox-row label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 500;
    text-align: left;
}

.order-flow-form .checkbox-row input {
    width: auto;
    margin-top: 2px;
    flex-shrink: 0;
}

.order-flow-form .order-message {
    margin-top: 4px;
}

/* HEADER */
.top-header {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #07101D;
    border-bottom: 2px solid #4CFFDF;
}

.logo img {
    height: 110px;
}

/* Desktop: hide the menu toggle by default */
.top-header .menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #4CFFDF;
    font-size: 28px;
    cursor: pointer;
}

/* Ensure top-nav lays out horizontally on desktop */
.top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Force header element order so logo left, nav center/right, hamburger last */
.top-header .logo { order: 1; }
.top-header .top-nav, .top-header nav { order: 2; margin-left: 12px; }
.top-header .menu-toggle { order: 3; margin-left: auto; }

/* TOP NAV LINKS */
.top-nav a {
    color: #4CFFDF;
    margin-left: 25px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s;
}

.top-nav a:hover {
    color: #72FFE6;
}

/* CENTER CONTENT */
.center-content {
    text-align: center;
    margin-top: 120px;
}

.center-content h1 {
    font-size: 42px;
    margin-bottom: 50px;
    color: #4CFFDF;
}

/* CENTER NAVIGATION */
.center-nav {
    display: flex;
    justify-content: center;
    gap: 20px; /* space between buttons */
    margin-top: 150px; /* adjust height position */
}

.center-nav a {
    padding: 12px 22px;
    background: #0ff; /* placeholder color */
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s ease;
    font-size: 40px;
}

.center-nav a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.content-section {
    width: 80%;
    max-width: 900px;
    margin: 150px auto;     /* increased spacing between sections */
    padding: 40px 20px;
    position: relative;
}

/* Larger section titles */
.content-section h2 {
    font-size: 36px;        /* bigger heading font */
    margin-bottom: 20px;
    color: #4CFFDF;         /* FlashFetch teal */
    text-align: left;
}

/* Horizontal line under each section EXCEPT last */
.content-section:not(:last-of-type)::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: #4CFFDF;
    margin: 50px auto 0 auto;    /* spacing above the line */
    opacity: 0.4;
}

/* Responsive: screens up to 700px */
@media screen and (max-width: 700px) {
    body {
        padding: 0 8px;
        min-height: 100vh;
    }

    .top-header {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
    }

    .top-header .logo {
        flex: 0 0 auto;
        margin-right: 8px;
    }

    .top-header .logo img {
        max-width: 120px; /* mobile logo cap */
        max-height: 70px;
        width: auto;
        height: auto;
    }

    .top-header .menu-toggle {
        display: inline-flex !important;
        background: transparent;
        border: none;
        color: #4CFFDF;
        font-size: 26px;
        cursor: pointer;
        padding: 6px;
        border-radius: 8px;
    }

    .top-nav {
        width: 100%;
        display: flex;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
        padding: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
        transition: max-height 0.25s ease, opacity 0.25s ease;
        opacity: 0;
        pointer-events: none;
    }

    .top-nav.show {
        max-height: 400px;
        opacity: 1;
        padding: 12px 0;
        pointer-events: auto;
    }

    .top-nav a {
        display: block;
        padding: 12px 14px;
        border-radius: 8px;
        background: rgba(76,255,223,0.06);
        color: #4CFFDF;
        font-size: 16px;
    }

    .center-content,
    .content-section {
        width: calc(100% - 24px);
        max-width: 700px;
        margin: 16px auto;
        padding: 0 12px;
    }

    .login-main {
        min-height: auto;
        padding: 24px 12px 32px;
    }

    /* Ensure center navigation stacks on small screens */
    .center-nav {
        flex-direction: column !important;
        gap: 12px;
        align-items: stretch !important;
    }

    .center-nav a {
        width: 100%;
        text-align: center;
        font-size: 18px;
        padding: 12px 16px;
    }

    .role-selection {
        flex-direction: column !important;
        gap: 12px;
        align-items: stretch !important;
    }

    .role-selection button {
        width: 100% !important;
        padding: 16px 18px !important;
        font-size: 18px !important;
    }

    /* Stack any common button rows */
    .button-row,
    .btn-row {
        display: flex;
        gap: 12px;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Make login/dashboard buttons larger */
    .login-container button,
    .order-submit-btn {
        padding: 16px 18px;
        font-size: 18px;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    button {
        width: 100% !important;
    }

    /* Extra overrides: enforce stacking, hamburger color, and expanded menu background */
    .role-selection,
    .center-nav,
    .button-row,
    .btn-row,
    .signup-popup-buttons,
    form .btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    /* Make all buttons and link-buttons full width and stacked on small screens */
    button,
    input[type="submit"],
    .btn,
    .center-nav a {
        display: block !important;
        width: 100% !important;
        margin: 8px 0 !important;
        box-sizing: border-box !important;
    }

    /* Hamburger color on mobile: white */
    .top-header .menu-toggle {
        color: #ffffff !important;
    }

    /* Expanded menu: white background, dark links */
    .top-nav.show {
        background: #ffffff !important;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    }

    .top-nav.show a {
        color: #111111 !important;
        background: transparent !important;
    }

    /* Dashboard/login readability on small screens */
    .login-container h1 {
        font-size: 28px !important;
    }

    .login-container,
    .login-container input,
    .login-container button {
        font-size: 16px !important;
    }
}

