body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f9f9f9;
    font-size: 13px;
}
#swal2-title{
    font-size: 18px;
    border-bottom: none;
}
.swal2-popup.pdf-preview-popup {
    padding-bottom: 12px;
}
.swal2-popup.pdf-preview-popup .swal2-html-container {
    margin: 0;
    padding: 0 12px;
    overflow: hidden;
}
.pdf-preview-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: #525659;
}
.pdf-preview-pages {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.pdf-preview-pages canvas {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 8px;
    background: #fff;
}
.pdf-preview-toolbar {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 88px 8px 12px;
    background: #323639;
    color: #fff;
    box-sizing: border-box;
}
.pdf-preview-page-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}
.pdf-preview-page-current,
.pdf-preview-page-total {
    display: inline;
    white-space: nowrap;
}
.pdf-preview-zoom {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pdf-preview-error {
    margin: 0;
    padding: 24px 16px;
    color: #fff;
    text-align: center;
}
.pdf-preview-zoom button {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid #6b7280;
    border-radius: 4px;
    background: #4b5563;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.pdf-preview-frame {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    background: #525659;
}
.pdf-preview-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #525659;
}
.pdf-preview-loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid #9ca3af;
    border-top-color: #fff;
    border-radius: 50%;
    animation: pdf-preview-spin 0.7s linear infinite;
}
.pdf-preview-wrap.is-ready .pdf-preview-loading {
    display: none;
}
@keyframes pdf-preview-spin {
    to {
        transform: rotate(360deg);
    }
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    background-color: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: relative;
}
h2 {
    color: #1f2937;
    text-align: center;
    border-bottom: 2px solid #111827;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.subtitle {
    text-align: left;
    color: rgb(72, 74, 79);
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
}
.brand-logo {
    display: block;
    margin: 0 0 10px;
}
.section {
    margin-top: 22px;
    padding: 18px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
label {
    display: block;
    margin-top: 14px;
    font-weight: bold;
    color: #374151;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="password"],
select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    color: #111827;
    background-color: #fff;
    box-sizing: border-box;
    height: 42px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}
input[type="date"] {
    appearance: auto;
    -webkit-appearance: auto;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="password"]:hover,
select:hover {
    border-color: #9ca3af;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
input[type="password"]:disabled,
select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 1;
}
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="text"]:-webkit-autofill:active,
input[type="email"]:-webkit-autofill,
input[type="email"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:active,
input[type="tel"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill:hover,
input[type="tel"]:-webkit-autofill:focus,
input[type="tel"]:-webkit-autofill:active {
    -webkit-text-fill-color: #111827;
    caret-color: #111827;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 99999s ease-out;
}
input[type="text"]:-webkit-autofill:hover,
input[type="email"]:-webkit-autofill:hover,
input[type="tel"]:-webkit-autofill:hover {
    border-color: #9ca3af;
}
input[type="text"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:focus,
input[type="tel"]:-webkit-autofill:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.helper {
    font-size: 12px;
    color: #6b7280;
    margin: 6px 0 0 0;
}
.required {
    color: #dc2626;
    margin-left: 4px;
}
.action {
    text-align: center;
    margin-top: 28px;
}
.action button {
    background-color: #2563eb;
    color: #fff;
    padding: 12px 28px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.action button:hover {
    background-color: #1d4ed8;
}
.action button:disabled,
.action button.is-submitting {
    opacity: 0.85;
    cursor: not-allowed;
}
.action button:disabled:hover,
.action button.is-submitting:hover {
    background-color: #2563eb;
}
/* z-index below SweetAlert2 (~1060) so success/error dialogs stay on top */
.tour-join-submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
}
.tour-join-submit-overlay.is-visible {
    display: flex;
}
.tour-join-submit-overlay__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    box-sizing: border-box;
    animation: tour-join-submit-spin 0.75s linear infinite;
}
@keyframes tour-join-submit-spin {
    to {
        transform: rotate(360deg);
    }
}
.note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 12px;
    text-align: center;
}
.download-btn {
    background-color: #0f8a9d;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    position: static;
    display: inline-block;
    margin: 8px 0 0;
}
.download-btn:hover {
    background-color: #0b7285;
}
.lang-switch {
    position: absolute;
    right: 28px;
    top: 28px;
}
.lang-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
}
.lang-btn:hover {
    background: #f3f4f6;
}
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #111827;
    margin: 0 0 10px;
}
.room-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.room-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.room-remove {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
    color: #6b7280;
}
.room-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.room-table th,
.room-table td {
    padding: 6px;
    vertical-align: top;
    width: 16.66%;
}
.room-table th {
    text-align: left;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
}
.room-table input,
.room-table select {
    width: 100%;
    max-width: 100%;
}
.mobile-field-label {
    display: none;
}
.traveller-guest-heading {
    display: none;
}
.share-room-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: normal;
    color: #374151;
}
.share-room-question {
    line-height: 1.4;
}
.share-room-choices {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.share-room-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    font-weight: normal;
}
.share-room-choice input[type="radio"] {
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    flex: 0 0 14px;
}
.add-room {
    margin-top: 12px;
    background-color: #ef4444;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}
.tour-fee-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    --tour-fee-fee-width: 96px;
    --tour-fee-tax-width: 96px;
}
.tour-fee-header,
.tour-fee-row,
.tour-fee-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--tour-fee-fee-width) var(--tour-fee-tax-width);
    align-items: center;
}
.tour-fee-header {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}
.tour-fee-header-fee,
.tour-fee-header-tax,
.tour-fee-value,
.tour-fee-tax,
.tour-fee-total-value,
.tour-fee-total-tax {
    text-align: right;
    justify-self: end;
}
.tour-fee-row {
    color: #374151;
    font-size: 14px;
}
.tour-fee-total {
    border-top: 1px solid #d1d5db;
    padding-top: 10px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: bold;
    color: #111827;
}
.tour-fee-tax-note {
    font-size: 12px;
    color: #4b5563;
    margin-top: 4px;
}
.tour-fee-note {
    margin-left: 6px;
    font-size: 12px;
    color: #0f766e;
}
.tour-fee-empty {
    color: #6b7280;
    font-size: 13px;
}
.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: start;
}
.field-row + .field-row {
    margin-top: 12px;
}
.field-row > label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-top: 0;
}
.field-row > label input,
.field-row > label select {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
}
.field-row > label .helper {
    flex: 1 1 100%;
}
.tour-closed-state {
    text-align: center;
    padding: 40px 20px;
}
.tour-closed-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111827;
}
.tour-closed-text {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 26px;
    color: #111827;
}
.tour-closed-home-btn {
    display: inline-block;
    min-width: 140px;
    background-color: #0b4a7a;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 700;
}
@media (max-width: 768px) {
    body {
        margin: 12px;
    }
    .container {
        padding: 18px;
    }
    .container > img[alt="logo"] {
        margin: 0 0 10px !important;
    }
    .subtitle {
        text-align: left;
    }
    .download-btn {
        position: static;
        display: inline-block;
        width: auto;
        margin: 8px 0 0;
    }
    .lang-switch {
        right: 18px;
        top: 18px;
    }
    .field-row {
        grid-template-columns: 1fr;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    input[type="password"],
    select {
        max-width: 100%;
    }
    .room-card {
        padding: 10px;
    }
    .room-table thead {
        display: none;
    }
    .room-table, .room-table tbody, .room-table tr, .room-table td {
        display: block;
        width: 100%;
    }
    .room-table tr {
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    .room-table td {
        padding: 6px 0;
    }
    .room-table td::before {
        display: block;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 4px;
        content: attr(data-label);
    }
    .room-table td:has(.mobile-field-label)::before {
        display: none;
    }
    .room-table td .mobile-field-label {
        display: block;
        font-size: 12px;
        color: #6b7280;
        margin-bottom: 4px;
        font-weight: 600;
    }
    .room-table td[data-col="room_type"].is-empty {
        display: none;
    }
    .room-table td[data-col="gender"] {
        display: flex;
        flex-direction: column;
    }
    .room-table td[data-col="gender"]::before {
        order: 2;
    }
    .room-table td[data-col="gender"] .mobile-field-label {
        order: 2;
    }
    .room-table td[data-col="gender"] .traveller-guest-heading {
        order: 1;
        display: block;
        font-weight: 700;
        font-size: 13px;
        color: #374151;
        margin-bottom: 8px;
    }
    .room-table td[data-col="gender"] .gender-field {
        order: 3;
    }
    .room-table td[data-col="gender"] .child-dob-wrap {
        order: 4;
    }
    .room-remove {
        right: 6px;
        top: 6px;
    }
    .tour-fee-header,
    .tour-fee-row,
    .tour-fee-total {
        grid-template-columns: minmax(0, 1fr) var(--tour-fee-fee-width) var(--tour-fee-tax-width);
    }
    .tour-fee-label,
    .tour-fee-total-label {
        grid-column: 1;
    }
    .tour-fee-value,
    .tour-fee-total-value {
        grid-column: 2;
    }
    .tour-fee-tax,
    .tour-fee-total-tax {
        grid-column: 3;
    }
    .tour-fee-value,
    .tour-fee-tax,
    .tour-fee-total-value,
    .tour-fee-total-tax {
        white-space: nowrap;
    }
    .tour-fee-summary {
        --tour-fee-fee-width: 88px;
        --tour-fee-tax-width: 88px;
    }
    .tour-closed-state {
        padding: 26px 12px;
    }
    .tour-closed-title,
    .tour-closed-text,
    .tour-closed-home-btn {
        font-size: 16px;
    }
    .swal2-popup.pdf-preview-popup {
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        padding: 0;
        border-radius: 0;
    }
    .swal2-popup.pdf-preview-popup .swal2-title {
        font-size: 16px;
        padding: 10px 44px 8px;
        margin: 0;
    }
    .swal2-popup.pdf-preview-popup .swal2-html-container {
        padding: 0;
        height: calc(100dvh - 52px);
    }
    .pdf-preview-wrap {
        height: 100%;
        max-height: calc(100dvh - 52px);
    }
    .pdf-preview-toolbar {
        padding: 8px 88px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    }
    .pdf-preview-page-info {
        font-size: 13px;
    }
}
