/**
 * TourSure Cruise Booking System CSS
 * File: toursure-booking-cruise.css
 * Version: 1.0.0
 */

/* ===================================
   MODAL OVERLAY & CONTAINER
   =================================== */

/* Body modifier when modal is open */
body.cruise-booking-modal-open {
    overflow: hidden;
}

/* Modal wrapper */
.cruise-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal backdrop (dark overlay) */
.cruise-booking-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

/* Modal container */
.cruise-booking-modal-container {
    position: relative;
    width: 90%;
    max-width: 560px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 100000;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.cruise-booking-modal-container.cruise-booking-modal-large {
    max-width: 1000px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cruise-booking-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.cruise-booking-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.cruise-booking-modal-close {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.cruise-booking-modal-close:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.cruise-booking-modal-close:active {
    background-color: #e5e7eb;
    transform: scale(0.95);
}

.cruise-booking-modal-close svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

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

.cruise-booking-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    max-width: 100%;
}

/* Custom scrollbar */
.cruise-booking-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cruise-booking-modal-body::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.cruise-booking-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.cruise-booking-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

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

.cruise-booking-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* ===================================
   BOOKING FORM STYLES
   =================================== */

.cruise-booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
}

/* Cruise info banner */
.cruise-booking-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.cruise-booking-info p {
    margin: 0;
    font-size: 0.938rem;
    line-height: 1.5;
    word-break: break-word;
}

.cruise-booking-info strong {
    font-weight: 600;
}

/* Form rows */
.booking-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 560px) {
    .booking-form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .booking-form-row:has(> .booking-form-group:only-child) {
        grid-template-columns: 1fr;
    }
}

/* Form groups */
.booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.booking-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    word-break: break-word;
}

.booking-form-group label .required {
    color: #ef4444;
    font-weight: 700;
    font-size: 1rem;
}

/* Form controls */
.booking-form-control {
    width: 100%;
    max-width: 100%;
    padding: 11px 12px;
    font-size: 0.938rem;
    line-height: 1.5;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 44px;
    box-sizing: border-box;
}

.booking-form-control:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.booking-form-control:hover:not(:focus):not(:disabled) {
    border-color: #9ca3af;
}

.booking-form-control:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

textarea.booking-form-control {
    resize: vertical;
    min-height: 100px;
    max-height: 200px;
    line-height: 1.6;
    padding: 11px 12px;
    box-sizing: border-box;
    width: 100%;
}

select.booking-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 36px;
    box-sizing: border-box;
}

select.booking-form-control option {
    padding: 8px;
    font-size: 0.938rem;
}

/* File input styling */
input[type="file"].booking-form-control {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.875rem;
}

input[type="file"].booking-form-control::-webkit-file-upload-button {
    padding: 8px 16px;
    margin-right: 12px;
    border: none;
    border-radius: 6px;
    background: #0ea5e9;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"].booking-form-control::-webkit-file-upload-button:hover {
    background: #0284c7;
}

/* Payment slip upload */
.payment-slip-upload {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.current-slip {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 16px;
    background-color: #f9fafb;
    display: inline-block;
    transition: all 0.2s ease;
}

.current-slip:hover {
    border-color: #0ea5e9;
    background-color: #f3f4f6;
}

.current-slip img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.current-slip img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

#slip-upload-progress {
    padding: 10px 14px;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}

#slip-upload-progress span {
    display: inline-block;
}

/* ===================================
   BOOKINGS TABLE STYLES
   =================================== */

.bookings-table-wrapper,
.cruise-bookings-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-top: 10px;
}

.bookings-table,
.cruise-bookings-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.875rem;
}

.bookings-table thead,
.cruise-bookings-table thead {
    background-color: #f9fafb;
}

.bookings-table thead tr,
.cruise-bookings-table thead tr {
    border-bottom: 2px solid #e5e7eb;
}

.bookings-table th,
.cruise-bookings-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    font-size: 0.875rem;
}

.bookings-table tbody tr,
.cruise-bookings-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.15s ease;
}

.bookings-table tbody tr:hover,
.cruise-bookings-table tbody tr:hover {
    background-color: #f9fafb;
}

.bookings-table tbody tr:last-child,
.cruise-bookings-table tbody tr:last-child {
    border-bottom: none;
}

.bookings-table td,
.cruise-bookings-table td {
    padding: 12px 16px;
    color: #1f2937;
    vertical-align: middle;
}

/* ===================================
   STATUS & PAYMENT BADGES
   =================================== */

.status-badge,
.payment-badge,
.cruise-status-badge,
.cruise-payment-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
}

/* Status badges */
.status-badge.status-new,
.cruise-status-badge.status-new {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-badge.status-contacted,
.cruise-status-badge.status-contacted {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-follow,
.cruise-status-badge.status-follow {
    background-color: #e0e7ff;
    color: #4338ca;
}

.status-badge.status-closed,
.cruise-status-badge.status-closed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.status-cancelled,
.cruise-status-badge.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Payment badges */
.payment-badge.payment-wait,
.cruise-payment-badge.payment-wait {
    background-color: #fef3c7;
    color: #92400e;
}

.payment-badge.payment-paid,
.cruise-payment-badge.payment-paid {
    background-color: #d1fae5;
    color: #065f46;
}

.payment-badge.payment-cancelled,
.cruise-payment-badge.payment-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Payment Status Cell with Slip */
.cruise-payment-status-cell {
    text-align: center;
}

.cruise-payment-slip-preview {
    display: inline-block;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cruise-slip-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.cruise-slip-thumbnail:hover {
    transform: scale(1.1);
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Booking Actions Group */
.cruise-booking-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.cruise-booking-actions-group .tsl-btn {
    flex: 1;
    min-width: 70px;
    justify-content: center;
}

@media (max-width: 768px) {
    .cruise-booking-actions-group {
        flex-direction: column;
        width: 100%;
    }

    .cruise-booking-actions-group .tsl-btn {
        width: 100%;
    }
}

/* ===================================
   BOOKING BUTTONS ON CRUISE CARDS
   =================================== */

/* Card Actions Container */
.tscrs-card-actions-crs891 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    width: 100%;
}

.tscrs-card-actions-row-crs891 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

@media (min-width: 640px) {
    .tscrs-card-actions-crs891 {
        gap: 8px;
    }

    .tscrs-card-actions-row-crs891 {
        gap: 8px;
    }
}

/* Booking Buttons Styles */
.tscrs-booking-btn-crs891,
.tscrs-bookings-list-btn-crs891,
.cruise-booking-btn,
.cruise-bookings-btn:not(.tscrs-bookings-icon-crs891) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Booking Button (Primary Action) */
.tscrs-booking-btn-crs891,
.cruise-booking-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
}

.tscrs-booking-btn-crs891:hover,
.cruise-booking-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.tscrs-booking-btn-crs891:active,
.cruise-booking-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* Bookings List Button (Secondary Action) */
.tscrs-bookings-list-btn-crs891,
.cruise-bookings-btn:not(.tscrs-bookings-icon-crs891) {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white !important;
    position: relative;
}

.tscrs-bookings-list-btn-crs891:hover,
.cruise-bookings-btn:not(.tscrs-bookings-icon-crs891):hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.tscrs-bookings-list-btn-crs891:active,
.cruise-bookings-btn:not(.tscrs-bookings-icon-crs891):active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(107, 114, 128, 0.3);
}

/* Button Icons */
.tscrs-icon-btn-crs891,
.tsl-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Hide button text on very small screens, show only icons */
@media (max-width: 380px) {

    .tscrs-booking-btn-crs891 span,
    .tscrs-bookings-list-btn-crs891 span,
    .cruise-booking-btn span,
    .cruise-bookings-btn:not(.tscrs-bookings-icon-crs891) span {
        display: none;
    }

    .tscrs-icon-btn-crs891,
    .tsl-icon {
        width: 18px;
        height: 18px;
    }
}

/* Booking Count Badge */
.cruise-booking-count-badge,
.booking-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 11px;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Detail Button in Card Actions */
.tscrs-detail-btn-crs891 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white !important;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.tscrs-detail-btn-crs891:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.tscrs-detail-btn-crs891:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.tscrs-detail-btn-crs891 svg {
    width: 16px;
    height: 16px;
}

/* Responsive Adjustments for Card Actions */
@media (max-width: 639px) {
    .tscrs-card-actions-crs891 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tscrs-booking-btn-crs891,
    .tscrs-bookings-list-btn-crs891,
    .tscrs-detail-btn-crs891 {
        width: 100%;
        justify-content: center;
    }
}

/* Table Actions - Adjust for Multiple Buttons */
.tscrs-table-actions-crs891 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.tscrs-table-actions-crs891 .tsl-btn {
    flex-shrink: 0;
}

/* ===================================
   LOADING & SKELETON STATES
   =================================== */

.booking-skeleton-loader {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg,
            #f3f4f6 0%,
            #e5e7eb 50%,
            #f3f4f6 100%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-line-short {
    width: 60%;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   EMPTY & ERROR STATES
   =================================== */

.no-bookings,
.booking-error {
    padding: 40px 20px;
    text-align: center;
}

.no-bookings p,
.booking-error p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
}

.booking-error p {
    color: #ef4444;
}

/* ===================================
   BUTTON STYLES
   =================================== */

.tsl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.938rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.5;
}

.tsl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tsl-btn-primary {
    background-color: #0ea5e9;
    color: white;
}

.tsl-btn-primary:hover:not(:disabled) {
    background-color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.tsl-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.tsl-btn-secondary:hover:not(:disabled) {
    background-color: #e5e7eb;
}

.tsl-btn-danger {
    background-color: #ef4444;
    color: white;
}

.tsl-btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.tsl-btn-sm {
    padding: 6px 14px;
    font-size: 0.813rem;
}

/* ===================================
   BOOKING ACTION BUTTONS GROUP
   =================================== */

.booking-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.booking-actions-group .tsl-btn {
    flex: 1;
    min-width: 70px;
    justify-content: center;
}

@media (max-width: 768px) {
    .booking-actions-group {
        flex-direction: column;
        width: 100%;
    }

    .booking-actions-group .tsl-btn {
        width: 100%;
    }
}

/* ===================================
   PAYMENT SLIP MODAL (FULL SIZE VIEW)
   =================================== */

body.payment-slip-modal-open,
body.cruise-payment-slip-modal-open {
    overflow: hidden;
}

.payment-slip-modal,
.cruise-payment-slip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.payment-slip-modal-backdrop,
.cruise-payment-slip-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.payment-slip-modal-content,
.cruise-payment-slip-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    z-index: 100001;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.payment-slip-modal-close,
.cruise-payment-slip-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.payment-slip-modal-close:hover,
.cruise-payment-slip-modal-close:hover {
    background: #ffffff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.payment-slip-modal-close svg,
.cruise-payment-slip-modal-close svg {
    width: 22px;
    height: 22px;
    color: #1f2937;
}

.payment-slip-image-wrapper,
.cruise-payment-slip-image-wrapper {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    max-height: 90vh;
    overflow: auto;
}

.payment-slip-full-image,
.cruise-payment-slip-full-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {

    .payment-slip-modal-content,
    .cruise-payment-slip-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .payment-slip-modal-close,
    .cruise-payment-slip-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        padding: 8px;
    }

    .payment-slip-modal-close svg,
    .cruise-payment-slip-modal-close svg {
        width: 20px;
        height: 20px;
    }

    .payment-slip-image-wrapper,
    .cruise-payment-slip-image-wrapper {
        padding: 12px;
        border-radius: 12px;
    }
}

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

@media (max-width: 768px) {
    .cruise-booking-modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .cruise-booking-modal-header {
        padding: 16px 20px;
    }

    .cruise-booking-modal-header h3 {
        font-size: 1.25rem;
    }

    .cruise-booking-modal-body {
        padding: 20px;
    }

    .cruise-booking-modal-footer {
        padding: 12px 20px;
        flex-direction: column-reverse;
    }

    .cruise-booking-modal-footer .tsl-btn {
        width: 100%;
    }

    .bookings-table {
        font-size: 0.813rem;
    }

    .bookings-table th,
    .bookings-table td {
        padding: 8px 12px;
    }

    /* Form adjustments for tablet */
    .cruise-booking-form {
        gap: 14px;
    }

    .booking-form-row {
        gap: 10px;
        grid-template-columns: 1fr;
    }

    .booking-form-group label {
        font-size: 0.813rem;
    }

    .booking-form-control {
        font-size: 0.875rem;
        padding: 10px 11px;
        min-height: 42px;
    }

    textarea.booking-form-control {
        min-height: 90px;
    }

    select.booking-form-control {
        background-size: 14px;
        padding-right: 32px;
    }

    .cruise-booking-info {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .current-slip {
        padding: 12px;
    }

    .current-slip img {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .cruise-booking-modal-container {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cruise-booking-modal-header {
        padding: 14px 16px;
    }

    .cruise-booking-modal-header h3 {
        font-size: 1.125rem;
    }

    .cruise-booking-modal-body {
        padding: 16px;
    }

    .cruise-booking-modal-footer {
        padding: 12px 16px;
    }

    .cruise-booking-info {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .cruise-booking-form {
        gap: 16px;
    }

    .booking-form-row {
        gap: 12px;
    }

    .booking-form-group {
        gap: 6px;
    }

    .booking-form-group label {
        font-size: 0.813rem;
    }

    .booking-form-control {
        font-size: 0.875rem;
        padding: 10px 12px;
        min-height: 40px;
    }

    textarea.booking-form-control {
        min-height: 90px;
    }

    select.booking-form-control {
        background-size: 16px;
        padding-right: 36px;
    }

    input[type="file"].booking-form-control {
        font-size: 0.813rem;
        padding: 8px 12px;
    }

    input[type="file"].booking-form-control::-webkit-file-upload-button {
        padding: 6px 12px;
        font-size: 0.813rem;
    }

    .current-slip {
        padding: 12px;
    }

    .current-slip img {
        max-width: 100%;
    }

    .status-badge,
    .payment-badge {
        font-size: 0.688rem;
        padding: 3px 8px;
    }

    .tsl-btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.cruise-booking-modal-close:focus,
.booking-form-control:focus,
.tsl-btn:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .cruise-booking-modal,
    .cruise-booking-modal-container,
    .cruise-booking-modal-close,
    .tsl-btn,
    .booking-form-control,
    .skeleton-line {
        animation: none;
        transition: none;
    }
}

/* ===================================
   DARK MODE SUPPORT (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    .cruise-booking-modal-container {
        background: #1f2937;
        color: #f3f4f6;
    }

    .cruise-booking-modal-header {
        border-bottom-color: #374151;
    }

    .cruise-booking-modal-header h3 {
        color: #f3f4f6;
    }

    .cruise-booking-modal-close {
        color: #9ca3af;
    }

    .cruise-booking-modal-close:hover {
        background-color: #374151;
        color: #f3f4f6;
    }

    .cruise-booking-modal-footer {
        border-top-color: #374151;
    }

    .booking-form-group label {
        color: #d1d5db;
    }

    .booking-form-control {
        background-color: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    .booking-form-control:focus {
        border-color: #06b6d4;
    }

    .bookings-table {
        background: #1f2937;
    }

    .bookings-table thead {
        background-color: #374151;
    }

    .bookings-table th {
        color: #d1d5db;
    }

    .bookings-table tbody tr {
        border-bottom-color: #374151;
    }

    .bookings-table tbody tr:hover {
        background-color: #374151;
    }

    .bookings-table td {
        color: #f3f4f6;
    }

    .tsl-btn-secondary {
        background-color: #374151;
        color: #f3f4f6;
    }

    .tsl-btn-secondary:hover:not(:disabled) {
        background-color: #4b5563;
    }
}

/* ===================================
   OTP VERIFICATION SECTION
   =================================== */

/* OTP Section Container */
.otp-verification-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0891B2;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* OTP Info Box */
.otp-info-box {
    background: #ffffff;
    border-left: 4px solid #0891B2;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(8, 145, 178, 0.1);
}

.otp-info-box p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #1f2937;
}

.otp-info-box strong {
    color: #0891B2;
    font-weight: 600;
}

/* OTP Email Input Group */
.otp-email-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.otp-email-input-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: stretch;
}

#otp-email {
    flex: 1;
    padding: 12px 14px;
    font-size: 0.938rem;
    border: 2px solid #0891B2;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: inherit;
    min-height: 44px;
    box-sizing: border-box;
}

#otp-email:focus {
    outline: none;
    border-color: #0E7490;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.15);
}

#otp-email:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

#send-otp-btn {
    padding: 12px 20px;
    font-size: 0.938rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
}

#send-otp-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0E7490 0%, #155e75 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

#send-otp-btn:active {
    transform: translateY(0);
}

#send-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* OTP Input Section */
.otp-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OTP Code Inputs Container */
.otp-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 12px;
}

/* Individual OTP Digit Input */
.otp-digit {
    width: 48px;
    height: 56px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background-color: #ffffff;
    color: #0891B2;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.otp-digit:focus {
    border-color: #0891B2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.2);
    transform: scale(1.05);
}

.otp-digit:not(:placeholder-shown) {
    border-color: #0891B2;
    background-color: #f0f9ff;
}

.otp-digit::placeholder {
    color: #d1d5db;
    font-weight: 400;
}

/* OTP Timer Info */
.otp-timer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.otp-timer-info svg {
    width: 16px;
    height: 16px;
    color: #0891B2;
}

#otp-countdown {
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #0891B2;
    font-size: 1rem;
}

.otp-timer-info.warning #otp-countdown {
    color: #f59e0b;
    animation: pulse 1s ease-in-out infinite;
}

.otp-timer-info.expired #otp-countdown {
    color: #ef4444;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* OTP Error Message */
.otp-error-message {
    display: none;
    padding: 10px 14px;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 4px solid #ef4444;
    margin-bottom: 12px;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* OTP Action Buttons */
#verify-otp-btn,
#resend-otp-btn {
    padding: 12px 24px;
    font-size: 0.938rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#verify-otp-btn {
    background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
    color: white;
    width: 100%;
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
}

#verify-otp-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0E7490 0%, #155e75 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

#verify-otp-btn:active {
    transform: translateY(0);
}

#verify-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#resend-otp-btn {
    background: transparent;
    color: #0891B2;
    border: 2px solid #0891B2;
    margin-top: 8px;
    width: 100%;
}

#resend-otp-btn:hover:not(:disabled) {
    background: #f0f9ff;
    border-color: #0E7490;
    color: #0E7490;
}

#resend-otp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #d1d5db;
    color: #9ca3af;
}

/* OTP Verified Badge */
.otp-verified-badge {
    display: none;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #059669;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: bounceIn 0.5s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.otp-verified-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.otp-verified-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.otp-verified-icon svg {
    width: 100%;
    height: 100%;
    color: #059669;
}

.otp-verified-text {
    flex: 1;
}

.otp-verified-text p {
    margin: 0;
    font-size: 0.938rem;
    line-height: 1.5;
    color: #065f46;
}

.otp-verified-text strong {
    font-weight: 600;
    color: #047857;
}

/* ===================================
   SUCCESS MODAL (PUBLIC BOOKING)
   =================================== */

/* Success Modal Body Modifier */
body.success-modal-open {
    overflow: hidden;
}

/* Success Modal Container */
.cruise-booking-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Modal Backdrop */
.success-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    cursor: pointer;
    animation: fadeIn 0.3s ease-out;
}

/* Success Modal Content Container */
.success-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    z-index: 1000000;
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success Modal Content */
.success-modal-content {
    padding: 40px 32px 32px;
    text-align: center;
}

/* Success Icon */
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successIconPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

@keyframes successIconPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon svg {
    width: 48px;
    height: 48px;
    color: #059669;
}

/* Success Modal Heading */
.success-modal-content h2 {
    margin: 0 0 12px 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #059669;
    animation: slideInFromTop 0.5s ease-out 0.3s both;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message */
.success-message {
    margin: 0 0 28px 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    animation: slideInFromTop 0.5s ease-out 0.4s both;
}

/* Booking Code Display */
.booking-code-display {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0891B2;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 24px;
    animation: slideInFromTop 0.5s ease-out 0.5s both;
}

.booking-code-label {
    margin: 0 0 12px 0;
    font-size: 0.938rem;
    font-weight: 600;
    color: #0E7490;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.booking-code-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: #0891B2;
    letter-spacing: 0.1em;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    border: 2px dashed #0891B2;
    margin: 0;
    word-break: break-all;
}

/* Success Info Box */
.success-info-box {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 24px;
    animation: slideInFromTop 0.5s ease-out 0.6s both;
}

.success-info-box p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #4b5563;
}

.success-info-box strong {
    color: #1f2937;
    font-weight: 600;
}

.success-info-box ul {
    margin: 12px 0 0 0;
    padding-left: 20px;
    text-align: left;
}

.success-info-box li {
    margin-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
}

.success-info-box li:last-child {
    margin-bottom: 0;
}

/* Success Modal Close Button */
.success-modal-close-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
    animation: slideInFromTop 0.5s ease-out 0.7s both;
}

.success-modal-close-btn:hover {
    background: linear-gradient(135deg, #0E7490 0%, #155e75 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

.success-modal-close-btn:active {
    transform: translateY(0);
}

/* ===================================
   OTP RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .otp-verification-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .otp-info-box {
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .otp-info-box p {
        font-size: 0.813rem;
    }

    .otp-email-group {
        flex-direction: column;
        gap: 10px;
    }

    #otp-email {
        width: 100%;
    }

    #send-otp-btn {
        width: 100%;
        min-width: auto;
    }

    .otp-code-inputs {
        gap: 6px;
    }

    .otp-digit {
        width: 44px;
        height: 52px;
        font-size: 1.375rem;
    }

    .success-modal-container {
        width: 95%;
        max-width: 450px;
    }

    .success-modal-content {
        padding: 32px 24px 24px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
    }

    .success-icon svg {
        width: 42px;
        height: 42px;
    }

    .success-modal-content h2 {
        font-size: 1.5rem;
    }

    .success-message {
        font-size: 0.938rem;
        margin-bottom: 24px;
    }

    .booking-code-display {
        padding: 20px 16px;
        margin-bottom: 20px;
    }

    .booking-code-label {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }

    .booking-code-value {
        font-size: 1.625rem;
        padding: 12px 16px;
    }

    .success-info-box {
        padding: 14px 16px;
        margin-bottom: 20px;
    }

    .success-info-box p,
    .success-info-box li {
        font-size: 0.813rem;
    }

    .success-modal-close-btn {
        padding: 12px 20px;
        font-size: 0.938rem;
    }
}

@media (max-width: 480px) {
    .otp-verification-section {
        padding: 16px;
        border-radius: 10px;
    }

    .otp-info-box {
        padding: 10px 12px;
        margin-bottom: 14px;
        font-size: 0.75rem;
    }

    .otp-code-inputs {
        gap: 4px;
    }

    .otp-digit {
        width: 40px;
        height: 48px;
        font-size: 1.25rem;
        border-radius: 8px;
    }

    #otp-email {
        font-size: 0.875rem;
        padding: 10px 12px;
    }

    #send-otp-btn,
    #verify-otp-btn,
    #resend-otp-btn {
        font-size: 0.875rem;
        padding: 10px 16px;
    }

    .otp-timer-info {
        font-size: 0.813rem;
    }

    #otp-countdown {
        font-size: 0.938rem;
    }

    .otp-verified-badge {
        padding: 12px 16px;
    }

    .otp-verified-icon {
        width: 28px;
        height: 28px;
    }

    .otp-verified-text p {
        font-size: 0.875rem;
    }

    .success-modal-container {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
        margin: 0 10px;
    }

    .success-modal-content {
        padding: 28px 20px 20px;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .success-icon svg {
        width: 38px;
        height: 38px;
    }

    .success-modal-content h2 {
        font-size: 1.375rem;
        margin-bottom: 10px;
    }

    .success-message {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }

    .booking-code-display {
        padding: 18px 14px;
        margin-bottom: 18px;
    }

    .booking-code-label {
        font-size: 0.813rem;
        margin-bottom: 8px;
    }

    .booking-code-value {
        font-size: 1.375rem;
        padding: 10px 14px;
        letter-spacing: 0.08em;
    }

    .success-info-box {
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .success-info-box p,
    .success-info-box li {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .success-modal-close-btn {
        padding: 11px 18px;
        font-size: 0.875rem;
    }
}

/* ===================================
   OTP ACCESSIBILITY
   =================================== */

.otp-digit:focus,
#otp-email:focus,
#send-otp-btn:focus,
#verify-otp-btn:focus,
#resend-otp-btn:focus,
.success-modal-close-btn:focus {
    outline: 2px solid #0891B2;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .otp-digit {
        border-width: 3px;
    }

    .otp-verified-badge {
        border-width: 3px;
    }

    .booking-code-display {
        border-width: 3px;
    }
}

/* Reduced motion support for OTP */
@media (prefers-reduced-motion: reduce) {

    .otp-input-section,
    .otp-verified-badge,
    .success-modal-container,
    .success-icon,
    .success-modal-content h2,
    .success-message,
    .booking-code-display,
    .success-info-box,
    .success-modal-close-btn {
        animation: none;
    }

    .otp-digit:focus {
        transform: none;
    }

    #send-otp-btn:hover,
    #verify-otp-btn:hover,
    .success-modal-close-btn:hover {
        transform: none;
    }

    .otp-timer-info.warning #otp-countdown {
        animation: none;
    }
}
