/* ======================================================
   US#7+US#8 – Booking Form & Summary Styles (book.css)
   ====================================================== */

/* ---- Page hero ---- */
.booking-hero {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    padding: 60px 24px 40px;
    text-align: center;
    color: #fff;
}

.booking-hero small {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 8px 0;
}

.booking-hero p {
    opacity: .75;
    font-size: 1rem;
}

/* ---- Layout ---- */
.booking-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* ---- Form Card ---- */
.form-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
}

.form-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card h2 i {
    color: #ff5f6d;
}

.form-section-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff5f6d;
    margin: 24px 0 14px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 7px;
}

.form-group label .required {
    color: #ff5f6d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #ebebeb;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: .25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff5f6d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 95, 109, .1);
}

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

/* ---- Checkboxes (add-ons) ---- */
.addon-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid #ebebeb;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
    background: #fafafa;
    font-size: .85rem;
    color: #555;
}

.addon-item:hover {
    border-color: #ff5f6d;
}

.addon-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff5f6d;
    cursor: pointer;
    flex-shrink: 0;
}

.addon-item .addon-cost {
    margin-left: auto;
    color: #ff5f6d;
    font-weight: 700;
    font-size: .8rem;
}

/* ---- Payment methods ---- */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.pay-method {
    padding: 12px 10px;
    border: 2px solid #ebebeb;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
    background: #fafafa;
}

.pay-method i {
    font-size: 1.3rem;
    color: #bbb;
    display: block;
    margin-bottom: 5px;
}

.pay-method span {
    font-size: .75rem;
    color: #888;
    font-weight: 500;
}

.pay-method:hover,
.pay-method.active {
    border-color: #ff5f6d;
    background: #fff8f8;
}

.pay-method.active i {
    color: #ff5f6d;
}

/* ---- Submit ---- */
.btn-confirm {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 28px;
    transition: .3s;
    box-shadow: 0 4px 18px rgba(255, 95, 109, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 95, 109, .5);
}

/* ==========================================
   Sidebar – Trip Summary (US#8)
   ========================================== */
.summary-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
    overflow: hidden;
    position: sticky;
    top: 90px;
}

.summary-img-wrap {
    position: relative;
}

.summary-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.summary-img-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(26, 26, 46, .85);
    color: #ffc371;
    font-size: .82rem;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 6px;
}

.summary-body {
    padding: 22px;
}

.summary-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-body h3 i {
    color: #ff5f6d;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .86rem;
}

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

.summary-row .label {
    color: #888;
}

.summary-row .value {
    font-weight: 600;
    color: #333;
}

.summary-total {
    background: linear-gradient(135deg, #fff5f5, #fff8ee);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    border: 1px solid #ffe0e0;
}

.summary-total .t-label {
    font-weight: 700;
    color: #555;
}

.summary-total .t-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff5f6d;
}

.trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .8rem;
    color: #777;
}

.trust-badge i {
    color: #2ecc71;
    font-size: .95rem;
    flex-shrink: 0;
}

/* ==========================================
   Standalone Summary Page (summary.html)
   ========================================== */
.confirm-wrap {
    max-width: 680px;
    margin: 60px auto;
    padding: 0 24px;
}

.confirm-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.confirm-header {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    padding: 36px 32px;
    text-align: center;
    color: #fff;
}

.confirm-header .check-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, .25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.confirm-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.confirm-header p {
    opacity: .88;
    font-size: .92rem;
}

.confirm-ref {
    background: rgba(255, 255, 255, .2);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .88rem;
    margin-top: 12px;
    letter-spacing: 1px;
}

.confirm-body {
    padding: 32px;
}

.confirm-body h3 {
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff5f6d;
    font-weight: 700;
    margin-bottom: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px 16px;
}

.detail-item .d-label {
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 5px;
}

.detail-item .d-val {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1a2e;
}

.confirm-total {
    background: linear-gradient(135deg, #fff5f5, #fff8ee);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ffe0e0;
    margin-bottom: 28px;
}

.confirm-total .tot-label {
    font-weight: 700;
    color: #555;
    font-size: 1.1rem;
}

.confirm-total .tot-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ff5f6d;
}

.confirm-actions {
    display: flex;
    gap: 12px;
}

.btn-print {
    flex: 1;
    padding: 13px;
    border: 2px solid #ff5f6d;
    background: transparent;
    color: #ff5f6d;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.btn-print:hover {
    background: #ff5f6d;
    color: #fff;
}

.btn-back {
    flex: 1;
    padding: 13px;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: .3s;
    box-shadow: 0 4px 16px rgba(255, 95, 109, .3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 95, 109, .45);
}

/* ======================================================
   US#10 – Responsive
   ====================================================== */
@media (max-width: 900px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .addon-list {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .booking-hero h1 {
        font-size: 1.7rem;
    }

    .form-card {
        padding: 24px 18px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .confirm-actions {
        flex-direction: column;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }
}