/* =============================================
   EmQuest Booking System — Front-end styles
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

.emqb-wrap {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #111;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ── Error state ──────────────────────────────────── */
.emqb-error {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    color: #721c24;
    font-weight: 600;
}
.emqb-error a { color: #1A6FB5; }

/* ── Package summary ──────────────────────────────── */
.emqb-summary {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #d8e8f5;
    box-shadow: 0 4px 20px rgba(26,111,181,0.08);
    margin-bottom: 32px;
    background: #fff;
}
.emqb-summary-img {
    width: 220px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    min-height: 180px;
}
.emqb-summary-info {
    flex: 1;
    padding: 24px 28px;
}
.emqb-summary-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1A6FB5;
    margin-bottom: 8px;
}
.emqb-summary-title {
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 800;
    color: #111;
    line-height: 1.15;
    margin: 0 0 10px;
}
.emqb-summary-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
}

/* ── Hotel selection ─────────────────────────────── */
.emqb-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}
.emqb-hotel-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.emqb-hotel-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #d8e8f5;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fff;
}
.emqb-hotel-opt:hover,
.emqb-hotel-opt-selected {
    border-color: #1A6FB5;
    background: #f0f7ff;
}
.emqb-hotel-opt input[type="radio"] {
    display: none;
}
.emqb-hotel-opt-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.emqb-hotel-opt-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}
.emqb-hotel-opt-body strong { font-size: 14px; font-weight: 800; color: #111; }
.emqb-hotel-opt-loc  { font-size: 12px; color: #888; }
.emqb-hotel-opt-plan { font-size: 12px; color: #555; }
.emqb-hotel-opt-price { font-size: 14px; font-weight: 800; color: #1A6FB5; margin-top: 4px; }
.emqb-hotel-opt-price small { font-weight: 600; color: #888; font-size: 11px; }

/* ── Chosen hotel ────────────────────────────────── */
.emqb-hotel-chosen {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #f0f7ff;
    border-left: 3px solid #1A6FB5;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}
.emqb-hotel-chosen-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1A6FB5;
}
.emqb-hotel-chosen strong { font-size: 15px; font-weight: 800; color: #111; }
.emqb-hotel-chosen-plan  { font-size: 12px; color: #555; }
.emqb-hotel-chosen-price { font-size: 13px; font-weight: 700; color: #1A6FB5; }
.emqb-change-hotel { font-size: 12px; color: #1A6FB5; margin-top: 4px; }

/* ── Booking form ────────────────────────────────── */
.emqb-form-wrap {
    background: #fff;
    border: 1px solid #d8e8f5;
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(26,111,181,0.06);
}
.emqb-form-heading {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0 0 24px;
}
.emqb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 600px) {
    .emqb-form-grid { grid-template-columns: 1fr; }
    .emqb-summary { flex-direction: column; }
    .emqb-summary-img { width: 100%; height: 160px; }
    .emqb-form-wrap { padding: 24px 20px; }
}
.emqb-field { display: flex; flex-direction: column; gap: 6px; }
.emqb-field-full { grid-column: 1 / -1; }
.emqb-label { font-size: 13px; font-weight: 700; color: #333; }
.emqb-req   { color: #E74C3C; }
.emqb-optional { color: #aaa; font-weight: 400; }
.emqb-input {
    border: 1.5px solid #d0dce8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    background: #fafcff;
    transition: border-color 0.2s;
    width: 100%;
}
.emqb-input:focus {
    outline: none;
    border-color: #1A6FB5;
    background: #fff;
}
.emqb-textarea {
    min-height: 90px;
    resize: vertical;
}

/* ── Price box ───────────────────────────────────── */
.emqb-price-box {
    background: #f4f8fc;
    border: 1px solid #d8e8f5;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
}
.emqb-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #e5edf5;
}
.emqb-price-row:last-child { border-bottom: none; }
.emqb-price-total-row {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}
.emqb-price-deposit-row { color: #E8821A; }

/* ── Payment type radios ─────────────────────────── */
.emqb-payment-type {
    margin-bottom: 20px;
}
.emqb-payment-type .emqb-label { margin-bottom: 10px; }
.emqb-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 2px solid #d0dce8;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 700;
    font-size: 14px;
    color: #333;
    position: relative;
}
.emqb-radio-label.emqb-radio-active {
    border-color: #1A6FB5;
    background: #f0f7ff;
    color: #1A6FB5;
}
.emqb-radio-label input { display: none; }
.emqb-radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    transition: border-color 0.2s, background 0.2s;
}
.emqb-radio-active .emqb-radio-dot {
    border-color: #1A6FB5;
    background: #1A6FB5;
}
.emqb-radio-sub {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    display: block;
    margin-left: auto;
    text-align: right;
}

/* ── Pay summary ─────────────────────────────────── */
.emqb-pay-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1A6FB5;
    color: #fff;
    border-radius: 10px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
#emqb-pay-amount {
    font-size: 20px;
    font-weight: 800;
}

/* ── Error ───────────────────────────────────────── */
.emqb-error-msg {
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    color: #721c24;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Pay button ──────────────────────────────────── */
.emqb-pay-btn {
    width: 100%;
    background: #E8821A;
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232,130,26,0.4);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.emqb-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(232,130,26,0.5); }
.emqb-pay-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.emqb-secure-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 14px;
}

/* ── Confirmation page ───────────────────────────── */
.emqb-confirm-wrap {
    font-family: 'Open Sans', Arial, sans-serif;
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}
.emqb-confirm-icon { font-size: 64px; margin-bottom: 16px; }
.emqb-confirm-heading {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
}
.emqb-confirm-sub {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
}
.emqb-confirm-ref {
    display: inline-block;
    background: #f0f7ff;
    border: 1.5px solid #1A6FB5;
    border-radius: 100px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    color: #1A6FB5;
    margin-bottom: 32px;
}
.emqb-confirm-details {
    background: #fff;
    border: 1px solid #d8e8f5;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(26,111,181,0.06);
    text-align: left;
    margin-bottom: 28px;
}
.emqb-confirm-details h2 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1A6FB5;
    margin: 0 0 20px;
}
.emqb-confirm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.emqb-confirm-table th {
    text-align: left;
    font-weight: 700;
    color: #888;
    padding: 9px 0;
    border-bottom: 1px solid #eee;
    width: 40%;
    vertical-align: top;
}
.emqb-confirm-table td {
    padding: 9px 0 9px 12px;
    color: #222;
    border-bottom: 1px solid #eee;
}
.emqb-confirm-next {
    background: #f4f8fc;
    border-radius: 12px;
    padding: 24px 28px;
    text-align: left;
}
.emqb-confirm-next h3 {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin: 0 0 14px;
}
.emqb-confirm-next ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.emqb-confirm-next ul li {
    font-size: 14px;
    color: #444;
    font-weight: 600;
}
.emqb-confirm-next p { font-size: 13px; color: #777; }
.emqb-confirm-next a { color: #1A6FB5; }

.emqb-confirm-error {
    font-family: 'Open Sans', Arial, sans-serif;
    max-width: 600px;
    margin: 40px auto;
    text-align: center;
    padding: 40px;
    background: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 14px;
    color: #721c24;
}
.emqb-btn-outline {
    display: inline-block;
    margin-top: 16px;
    border: 2px solid #1A6FB5;
    color: #1A6FB5;
    padding: 10px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
