/* ===============================
   GLOBAL
================================ */
* {
    box-sizing: border-box;
    font-family: 'Urbanist', sans-serif;
}

body {
    margin: 0;
    background: #f4f6f8;
    color: #2b2b2b;
}

/* ===============================
   HEADER (BOOKING PAGE)
================================ */
.top-header {
    background: linear-gradient(90deg, #0A3D62, #083358);
    color: #fff;
    text-align: center;
    padding: 18px;
}

.top-header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.top-header p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ===============================
   LAYOUT
================================ */
.wrapper {
    max-width: 1000px;
    margin: 20px auto;
    padding: 10px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ===============================
   TITLES
================================ */
h2, h3 {
    color: #0A3D62;
    border-bottom: 2px solid #dbe3ea;
    padding-bottom: 5px;
    margin-top: 25px;
    font-weight: 600;
}

/* ===============================
   GRID
================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* ===============================
   FORM FIELDS
================================ */
.field label {
    font-size: 13px;
    font-weight: 600;
    color: #083358;
}

.field input,
.field select {
    width: 100%;
    padding: 9px;
    margin-top: 4px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #0A3D62;
}

input[readonly] {
    background: #eef3f8;
    cursor: not-allowed;
}

/* ===============================
   RECEIVER HEADER
================================ */
.receiver-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    font-size: 14px;
    color: #083358;
}

/* ===============================
   PRIMARY BUTTON
================================ */
.btn-primary {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #0A3D62, #0d4f7a);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #083358, #0A3D62);
}

/* ===============================
   FOOTER (BOOKING)
================================ */
footer {
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #083358;
}

/* ===============================
   INVOICE CONTAINER
================================ */
.invoice {
    max-width: 850px;
    margin: 30px auto 10px;
    background: #fff;
    border: 2px solid #0A3D62;
    border-radius: 10px;
    padding: 25px 30px 20px;
}

/* ===============================
   INVOICE HEADER (LOGO | NAME | META)
================================ */
.invoice-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #0A3D62;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.logo img {
    height: 70px;
}

.company h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #0A3D62;
}

.company p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #333;
}

.invoice-meta {
    text-align: right;
    font-size: 13px;
}

.invoice-meta div {
    margin-bottom: 4px;
}

/* ===============================
   ROWS & SECTIONS
================================ */
.section {
    margin-top: 18px;
}

.section h3 {
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #d6e2ee;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed #d0dbe5;
    font-size: 13.5px;
}

.row strong {
    font-weight: 600;
}

.row span {
    font-weight: 500;
}

/* ===============================
   LUGGAGE | PAYMENT SIDE BY SIDE
================================ */
.section.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.section.split .box {
    background: #ffffff;
    border: 1px solid #d6e2ee;
    border-radius: 8px;
    padding: 14px 16px;
}

.section.split .box h3 {
    margin-top: 0;
}

/* PAYMENT BOX */
.box.payment {
    background: #f1f6fb;
    border-left: 4px solid #0A3D62;
}

.box.payment .total {
    background: #eaf2fb;
    padding: 8px 10px;
    border-radius: 6px;
}

.box.payment .total strong,
.box.payment .total span {
    font-weight: 700;
    font-size: 15px;
}

.amount-words span {
    font-size: 12px;
    font-style: italic;
    color: #444;
}

/* ===============================
   TERMS
================================ */
.terms {
    margin-top: 20px;
    background: #f1f6fb;
    padding: 10px 15px;
    border-left: 4px solid #0A3D62;
    font-size: 12.5px;
}

.terms h3 {
    margin-top: 0;
}

/* ===============================
   ACTION BUTTONS
================================ */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 25px auto 10px;
    padding-top: 15px;
    border-top: 1px dashed #cfd8dc;
}

.btn-action {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
}

.btn-action.primary {
    background: #0A3D62;
    color: #fff;
}

/* ===============================
   PAID / UNPAID STAMP
================================ */
.payment-stamp {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 10px;
}

.payment-stamp.paid {
    background: #e6f4ea;
    color: #1e7e34;
    border: 2px solid #1e7e34;
}

.payment-stamp.unpaid {
    background: #fdecea;
    color: #c82333;
    border: 2px solid #c82333;
}

/* ===============================
   INVOICE FOOTER
================================ */
.invoice .footer {
    text-align: center;
    margin-top: 12px;
    font-size: 12.5px;
    color: #333;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 700px) {
    .section.split {
        grid-template-columns: 1fr;
    }

    .invoice-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .invoice-meta {
        text-align: center;
    }
}

/* ===============================
   PRINT MODE
================================ */
@media print {
    body {
        background: #fff;
    }

    .top-header,
    footer,
    .btn-primary,
    .action-buttons,
    button {
        display: none !important;
    }

    .invoice {
        margin: 0 auto;
        border: 2px solid #000;
    }
}
