/**
 * TourSure Flight Booking System CSS
 * File: toursure-booking-flight.css
 * Version: 1.0.0
 */

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

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

/* Modal wrapper */
.flight-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) */
.flight-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 */
.flight-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;
}

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

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

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

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

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

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

.flight-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;
}

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

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

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

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

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

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

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

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

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

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

.flight-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
   =================================== */

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

/* Flight info banner */
.flight-booking-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

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

.flight-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: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 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: #667eea;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Number input with +/- buttons */
.number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    position: relative;
}

.number-input-wrapper .number-input-field {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0;
    border-left: none;
    border-right: none;
    min-width: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.number-input-wrapper .number-input-field::-webkit-outer-spin-button,
.number-input-wrapper .number-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.number-input-wrapper .number-input-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.number-input-wrapper .number-input-minus {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.number-input-wrapper .number-input-plus {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.number-input-wrapper .number-input-btn:hover:not(:disabled) {
    background: #f3f4f6;
    color: #5568d3;
}

.number-input-wrapper .number-input-btn:active:not(:disabled) {
    background: #e5e7eb;
    transform: scale(0.95);
}

.number-input-wrapper .number-input-btn:disabled {
    background-color: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.5;
}

.number-input-wrapper .number-input-btn svg {
    width: 18px;
    height: 18px;
}

/* 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: #667eea;
    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 {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

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

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

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

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

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

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

.bookings-table td {
    padding: 12px 16px;
    color: #1f2937;
}

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

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

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

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

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

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

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

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

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

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

/* ===================================
   BOOKING BUTTONS ON FLIGHT CARDS
   =================================== */

.flight-booking-btn,
.flight-bookings-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.flight-booking-btn {
    background-color: #667eea;
    color: white;
}

.flight-booking-btn:hover {
    background-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.flight-bookings-btn {
    background-color: #10b981;
    color: white;
    position: relative;
}

.flight-bookings-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.booking-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 10px;
    margin-left: 4px;
}

/* ===================================
   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: #667eea;
    color: white;
}

.tsl-btn-primary:hover:not(:disabled) {
    background-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 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 IN BOOKINGS TABLE
   =================================== */

.payment-status-cell {
    text-align: center;
}

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

.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;
}

.slip-thumbnail:hover {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

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

.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 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.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.8);
        opacity: 0;
    }

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

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

.payment-slip-modal-close:hover {
    background: #ffffff;
    transform: rotate(90deg);
}

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

.payment-slip-image-wrapper {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow: auto;
}

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

@media (max-width: 768px) {
    .payment-slip-modal-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .payment-slip-modal-close {
        top: 10px;
        right: 10px;
    }

    .slip-thumbnail {
        width: 50px;
        height: 50px;
    }
}

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

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

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

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

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

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

    .flight-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 */
    .flight-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;
    }

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

    .current-slip {
        padding: 12px;
    }

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

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

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

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

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

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

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

    .flight-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
   =================================== */

.flight-booking-modal-close:focus,
.booking-form-control:focus,
.tsl-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

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

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

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

.otp-verification-section {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.otp-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e40af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.otp-info-box svg {
    flex-shrink: 0;
}

.otp-email-group {
    margin-bottom: 16px;
}

.otp-email-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
}

.otp-email-input-wrapper {
    display: flex;
    gap: 10px;
}

.otp-email-input-wrapper input {
    flex: 1;
}

.otp-email-input-wrapper .tsl-btn {
    white-space: nowrap;
    min-width: auto;
}

.otp-input-section {
    margin-top: 20px;
}

.otp-input-section>label {
    font-size: 0.938rem;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 12px;
    text-align: center;
}

.otp-timer-info {
    text-align: center;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: #fef3c7;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.otp-timer-info.warning {
    background: #fee2e2;
    color: #991b1b;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.otp-timer-info.expired {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.otp-timer-info strong {
    font-weight: 700;
    font-size: 1rem;
}

.otp-code-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    border: 2px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 0;
}

.otp-digit:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: scale(1.05);
}

.otp-digit:hover:not(:focus) {
    border-color: #9ca3af;
}

.otp-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 12px;
}

.otp-actions .tsl-btn {
    min-width: 140px;
}

.otp-error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 12px;
}

.otp-verified-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.938rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideIn 0.4s ease-out;
}

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

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

.otp-verified-badge svg {
    flex-shrink: 0;
}

/* ===================================
   SUCCESS MODAL
   =================================== */

body.success-modal-open {
    overflow: hidden;
}

.flight-booking-success-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.3s ease-out;
}

.success-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;
}

.success-modal-container {
    position: relative;
    width: 90%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    z-index: 100001;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3) translateY(-50px);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

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

.success-modal-content {
    padding: 40px 32px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    color: white;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 16px 0;
    animation: slideDown 0.5s ease-out 0.3s both;
}

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

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

.success-message {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 28px 0;
    line-height: 1.6;
    animation: slideDown 0.5s ease-out 0.4s both;
}

.booking-code-display {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px 20px;
    margin-bottom: 24px;
    animation: slideDown 0.5s ease-out 0.5s both;
}

.booking-code-label {
    font-size: 0.938rem;
    color: #6b7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.booking-code-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    font-family: 'Courier New', monospace;
    letter-spacing: 6px;
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.success-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    animation: slideDown 0.5s ease-out 0.6s both;
}

.success-info-box svg {
    flex-shrink: 0;
    color: #1e40af;
    margin-top: 2px;
}

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

.success-modal-close-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    animation: slideDown 0.5s ease-out 0.7s both;
}

.tsl-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ===================================
   RESPONSIVE - OTP & SUCCESS MODAL
   =================================== */

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

    .otp-email-input-wrapper {
        flex-direction: column;
    }

    .otp-email-input-wrapper .tsl-btn {
        width: 100%;
    }

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

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

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

    .otp-actions .tsl-btn {
        width: 100%;
        min-width: auto;
    }

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

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

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

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

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

    .success-message {
        font-size: 0.938rem;
    }

    .booking-code-value {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .success-info-box {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .otp-verification-section {
        padding: 14px;
    }

    .otp-info-box {
        padding: 10px 14px;
        font-size: 0.813rem;
    }

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

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

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

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

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

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

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

    .success-message {
        font-size: 0.875rem;
        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.75rem;
        letter-spacing: 3px;
    }

    .success-info-box {
        padding: 12px;
        gap: 10px;
    }

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

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

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

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

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

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

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

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

    .flight-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: #818cf8;
    }

    .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;
    }
}
