/* =========================================================
   BOOK IT
   Main Stylesheet
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    background: linear-gradient(
        135deg,
        #0077b6,
        #023e8a
    );

    color: white;
    text-align: center;
    padding: 28px 20px;
}

header h1 {
    margin-bottom: 5px;
    font-size: 32px;
}

header p {
    font-size: 16px;
    opacity: 0.95;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

nav {
    background: #001d3d;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s ease;
    border: 1px solid transparent;
}

nav a:hover {
    background: #0077b6;
    border-color: rgba(
        255,
        255,
        255,
        0.20
    );
    transform: translateY(-1px);
}

/* =========================================================
   LOGOUT BUTTON
   ========================================================= */

.logout-button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

.logout-button:hover {
    background: #b02a37;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    width: 92%;
    max-width: 1100px;
    margin: 30px auto;
}


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

.hero {
    background: white;
    text-align: center;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.hero h2 {
    color: #003566;
    margin-bottom: 10px;
    font-size: 30px;
}

.hero p {
    color: #555;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.search-box {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );

    gap: 18px;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 7px;
    color: #003566;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 15px;
    background: white;
    outline: none;
    transition: 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(
        0,
        119,
        182,
        0.12
    );
}


/* =========================================================
   BUTTONS
   ========================================================= */

button {
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    background: #0077b6;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(
        0,
        0,
        0,
        0.10
    );
}

button:hover {
    background: #023e8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(
        0,
        0,
        0,
        0.15
    );
}

button:active {
    transform: translateY(0);
}


/* =========================================================
   PAGE TITLE
   ========================================================= */

.page-title {
    color: #003566;
    margin-bottom: 22px;
    font-size: 28px;
    font-weight: bold;
}


/* =========================================================
   RESULTS
   ========================================================= */

.results {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 18px rgba(
        0,
        0,
        0,
        0.08
    );
    border: 1px solid #e5eaf0;
    transition: 0.2s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(
        0,
        0,
        0,
        0.10
    );
}

.result-info {
    flex: 1;
}

.result-info h3 {
    color: #003566;
    margin-bottom: 10px;
}

.result-info p {
    margin: 5px 0;
    color: #555;
}

.result-price {
    min-width: 180px;
    text-align: right;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #0077b6;
    margin-bottom: 3px;
}

.result-price small {
    color: #666;
}


/* =========================================================
   BOOKING BOX
   ========================================================= */

.booking-box {
    background: white;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(
        0,
        0,
        0,
        0.08
    );
}

.booking-box h2 {
    color: #003566;
    margin-bottom: 20px;
}
/* =========================================================
   AUTH FORM
   ========================================================= */

.booking-box > p {
    color: #555;
    margin-bottom: 20px;
}

.booking-box form {
    margin-top: 10px;
}

.booking-box form button {
    margin-top: 5px;
}
/* =========================================================
   SIGNUP FORM
   ========================================================= */

#signupForm {
    max-width: 650px;
}

/* =========================================================
   BOOKING SUMMARY
   ========================================================= */

.booking-summary {
    background: #f4f7fb;
    border-left: 5px solid #0077b6;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 25px;
}

.booking-summary h3 {
    color: #003566;
    margin-bottom: 8px;
}

.booking-summary p {
    margin: 7px 0;
}

.summary {
    background: #f4f7fb;
    padding: 18px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    border-bottom: 1px solid #dbe3ea;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 20px;
    color: #003566;
    font-weight: bold;
}


/* =========================================================
   ROUTE
   ========================================================= */

.route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    padding: 15px;
    background: #f4f7fb;
    border-radius: 8px;
}

.route-place {
    text-align: center;
    min-width: 100px;
}

.route-place strong {
    display: block;
    color: #003566;
    font-size: 18px;
}

.route-place small {
    color: #666;
}

.route-arrow {
    width: 80px;
    height: 2px;
    background: #0077b6;
    position: relative;
}

.route-arrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0077b6;
}

.route-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #0077b6;
    border-right: 2px solid #0077b6;
    transform: rotate(45deg);
}


/* =========================================================
   PAYMENT
   ========================================================= */

.payment-box {
    background: white;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(
        0,
        0,
        0,
        0.08
    );
}

.payment-box h2 {
    color: #003566;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f4f7fb;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    cursor: pointer;
}

.payment-method:hover {
    border-color: #0077b6;
}

.payment-method input {
    width: 18px;
    height: 18px;
}

.card {
    background: #f4f7fb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card h3 {
    color: #003566;
    margin-bottom: 15px;
}


/* =========================================================
   BOOKINGS LIST
   ========================================================= */

.booking-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.booking-card {
    background: white;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 5px 18px rgba(
        0,
        0,
        0,
        0.08
    );
    border-left: 5px solid #0077b6;
    border-top: 1px solid #e5eaf0;
    border-right: 1px solid #e5eaf0;
    border-bottom: 1px solid #e5eaf0;
    transition: 0.2s ease;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(
        0,
        0,
        0,
        0.10
    );
}

.booking-card.cancelled {
    border-left-color: #a80000;
    background: #fff7f7;
    opacity: 0.95;
}

.booking-card.pending {
    border-left-color: #d39e00;
    background: #fffdf3;
}

.booking-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dbe3ea;
}

.booking-head h3 {
    color: #003566;
    margin-bottom: 5px;
}

.booking-head p {
    color: #555;
    font-size: 14px;
}

.booking-details {
    margin-bottom: 18px;
    padding: 15px;
    background: #eef6ff;
    border: 1px solid #e1eaf2;
    border-radius: 8px;
}

.booking-details h3 {
    color: #003566;
    margin-bottom: 12px;
}

.booking-details p {
    margin: 7px 0;
}

.booking-details p strong {
    color: #003566;
}

.booking-reference {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    background: #f1f8ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 8px;
}

.booking-reference span {
    font-size: 12px;
    color: #666;
}

.booking-reference strong {
    font-size: 16px;
    color: #003566;
}

.booking-reference {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {

    .booking-head {
        flex-direction: column;
        gap: 12px;
    }

    .booking-reference {
        width: 100%;
    }

    .booking-reference strong {
        word-break: break-word;
    }

}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.status.confirmed {
    background: #d8f3dc;
    color: #176b2c;
    border: 1px solid #a3d9ad;
}

.status.cancelled {
    background: #ffe0e0;
    color: #a80000;
	border: 1px solid #f1aaaa;
}

.status.pending {
    background: #fff3cd;
    color: #856404;
	border: 1px solid #e6c85c;
}


/* =========================================================
   ACTION BUTTONS
   ========================================================= */

.actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dbe3ea;
}

.cancel-button {
    background: #c1121f;
}

.cancel-button:hover {
    background: #8f0000;
}

.print-button {
    background: #495057;
}

.print-button:hover {
    background: #343a40;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.message {
    padding: 12px 15px;
    border-radius: 7px;
    margin-bottom: 18px;
    background: #e7f5ff;
    color: #004085;
}

.message.success {
    background: #d8f3dc;
    color: #176b2c;
}

.message.error {
    background: #ffe0e0;
    color: #a80000;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-state {
    background: white;
    text-align: center;
    padding: 45px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(
        0,
        0,
        0,
        0.08
    );
}

.empty-state h3 {
    color: #003566;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: #0077b6;
}

a:hover {
    color: #023e8a;
}

.button-link {
    display: inline-block;
    text-decoration: none;
    background: #0077b6;
    color: white;
    padding: 11px 18px;
    border-radius: 7px;
    font-weight: bold;
}

.button-link:hover {
    background: #023e8a;
    color: white;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 50px;
    background: #001d3d;
    color: white;
    text-align: center;
    padding: 28px 15px;
    border-top: 4px solid #0077b6;
}
footer p {
    margin: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    header h1 {
        font-size: 26px;
    }

    nav {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
}

    nav a {
        width: 100%;
        text-align: center;
    }

nav .logout-button {
    width: auto;
    margin: 0;
}

    .container {
        width: 94%;
        margin: 20px auto;
    }

    .result-card {
        flex-direction: column;
        align-items: stretch;
    }

    .result-price {
        min-width: 0;
        text-align: left;
    }

    .route {
        gap: 12px;
    }

    .route-arrow {
        width: 50px;
    }

    .booking-head {
        flex-direction: column;
    }

    .actions {
        justify-content: flex-start;
    }

}


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

@media (max-width: 480px) {

    .hero {
        padding: 25px 15px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .search-box,
    .booking-box,
    .payment-box,
    .booking-card {
        padding: 18px;
    }

    .route {
        flex-direction: column;
    }

    .route-arrow {
        width: 2px;
        height: 35px;
    }

    .route-arrow::before {
        left: -3px;
        top: 0;
    }

    .route-arrow::after {
        right: -3px;
        top: auto;
        bottom: 0;
        transform: rotate(135deg);
    }

    .actions button {
        width: 100%;
    }
button,
.button-link {
    max-width: 100%;
}
}
/* =========================================================
   MOBILE FORM IMPROVEMENTS
   ========================================================= */

@media (max-width: 480px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

}

/* =========================================================
   PRINT
   ========================================================= */

@media print {

    body {
        background: white;
    }

    header,
    nav,
    footer,
    .hero,
    .actions {
        display: none !important;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .booking-list {
        display: block;
    }

    .booking-card {
        display: block !important;
        box-shadow: none;
        border: 1px solid #999;
        margin: 0;
        padding: 25px;
    }

    .booking-card:not(:first-child) {
        display: none !important;
    }

    .status {
        border: 1px solid #555;
    }

}
/* Book It brand mark */
.book-it-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border-radius: 10px;
    background: #ffffff;
    color: #023e8a;
    font-size: 20px;
    font-weight: 800;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
