/* Avia Calendar Plugin Styles */

.aviacal-booking-container {
   
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px; /* Add padding at bottom to prevent content from being hidden behind fixed summary */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Account Actions */
.aviacal-account-actions {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aviacal-account-actions .aviacal-btn {
    min-width: 120px;
}

/* Date Selection */
.aviacal-date-selector {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aviacal-date-selector h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.aviacal-date-selector input[type="date"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 200px;
}

.aviacal-date-selector input[type="date"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Current Time Display */
.aviacal-current-time {
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.aviacal-time-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    opacity: 0.9;
}

.aviacal-time-display {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Booking Summary Header */
.aviacal-booking-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    padding: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}

.aviacal-summary-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.aviacal-summary-date,
.aviacal-summary-time,
.aviacal-summary-resource,
.aviacal-summary-price {
    font-weight: 500;
    color: #495057;
}

.aviacal-summary-date {
    font-size: 16px;
    font-weight: 600;
}

.aviacal-summary-time {
    font-size: 14px;
}

.aviacal-summary-resource {
    font-size: 14px;
    color: #6c757d;
}

.aviacal-summary-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.aviacal-summary-actions {
    display: flex;
    gap: 10px;
}

.aviacal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    line-height: 1.5;
}

.aviacal-btn-primary {
    background: #007cba;
    color: white;
}

.aviacal-btn-primary:hover {
    background: #005a87;
}

.aviacal-btn-secondary {
    background: #6c757d;
    color: white;
}

.aviacal-btn-secondary:hover {
    background: #545b62;
}

/* Calendar Grid */
.aviacal-calendar-grid {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: visible;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    height: auto;
    /* overflow-x: auto for horizontal scroll, overflow-y: visible to allow sticky with page scroll */
}

.aviacal-grid-container {
    display: table;
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
}

.aviacal-grid-header {
    display: table-row;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.aviacal-time-column-header {
    display: table-cell;
    padding: 10px 10px;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
    width: 110px;
    text-align: center;
    vertical-align: middle;
    position: -webkit-sticky;
    position: sticky;
    left: 0;
    top: 0;
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    z-index: 1000;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
    /* Ensure sticky works with page scrolling */
    will-change: transform;
}

/* Account for WordPress admin bar when present */
@media screen and (max-width: 782px) {
    .admin-bar .aviacal-time-column-header,
    .admin-bar .aviacal-resource-column-header {
        top: 46px;
    }
}

.aviacal-resource-column-header {
    display: table-cell;
    padding: 15px 10px;
    font-weight: 600;
    color: #495057;
    border-right: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    min-width: 150px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    z-index: 999;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
    /* Ensure sticky works with page scrolling */
    will-change: transform;
    /* Force sticky to work relative to viewport, not parent container */
    contain: layout style;
}

.aviacal-resource-name {
    font-size: 14px;
    margin-bottom: 5px;
}

.aviacal-resource-info {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
}

.aviacal-grid-row {
    display: table-row;
    border-bottom: 1px solid #dee2e6;
}

.aviacal-grid-row:hover {
    background: #f8f9fa;
}

.aviacal-time-column {
    display: table-cell;
    padding: 6px 10px;
    border-right: 1px solid #dee2e6;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    text-align: center;
    vertical-align: middle;
    width: 110px;
    background: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 5;
}

.aviacal-time-slot {
    display: table-cell;
    padding: 6px 5px;
    border-right: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    min-width: 150px;
    min-height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.aviacal-slot-available {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
    border-top: 1px solid #c3e6cb;
    border-bottom: 1px solid #c3e6cb;
}

.aviacal-slot-available:hover {
    background: #c3e6cb;
    transform: scale(1.02);
}

.aviacal-slot-available .aviacal-slot-text {
    font-weight: 500;
}

.aviacal-slot-selected {
    background: #e8f5e8 !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
    position: relative;
    z-index: 1;
}

.aviacal-slot-selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28a745;
    z-index: 2;
}

/* Ensure selected row borders are always visible */
.aviacal-time-slot.aviacal-slot-selected {
    border-left: 4px solid #28a745 !important;
    background: #e8f5e8 !important;
}

.aviacal-time-slot.aviacal-slot-selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28a745;
    z-index: 3;
}

/* Time labels on selected slots */
.aviacal-slot-time-label {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: #007cba;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.aviacal-slot-start-label {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 3px solid #28a745;
}

.aviacal-slot-end-label {
    top: 4px;
    right: 50%;
    transform: translateX(50%);
    border-right: 3px solid #28a745;
}

/* Drag handle */
.aviacal-drag-handle {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: #28a745;
    cursor: ns-resize;
    z-index: 10;
    border-radius: 2px;
    /* Touch-friendly properties */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.aviacal-drag-handle:hover {
    background: #218838;
    height: 6px;
    bottom: -3px;
}

/* Dragging state */
.aviacal-dragging {
    cursor: ns-resize !important;
}

.aviacal-dragging * {
    cursor: ns-resize !important;
}

/* Excel-like selection range */
.aviacal-slot-selection-range {
    background: #c3e6cb !important;
    color: #155724 !important;
    border-left: 2px solid #28a745 !important;
}

/* Ensure even rows also get the border */
.aviacal-time-slot:nth-child(even).aviacal-slot-selected {
    border-left: 4px solid #28a745 !important;
}

.aviacal-time-slot:nth-child(odd).aviacal-slot-selected {
    border-left: 4px solid #28a745 !important;
    border-right: 4px solid #28a745 !important;
}

.aviacal-drag-indicator-down {
    bottom: -12px;
}

.aviacal-drag-indicator::before {
    content: '↓';
    font-size: 14px;
}

/* Invalid drag feedback */
.aviacal-drag-invalid {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-left: 3px solid #dc3545 !important;
    animation: shake 0.2s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}
/* Drag indicators are hidden by default */
.aviacal-drag-indicator {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100000;
}

/* Show drag indicators only when explicitly made visible */
.aviacal-drag-indicator.aviacal-drag-visible {
    opacity: 1;
    visibility: visible;
}

/* Past time slot styling */
.aviacal-slot-past {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    border-left: 3px solid #6c757d !important;
}

.aviacal-slot-past:hover {
    background-color: #f8f9fa !important;
    transform: none !important;
}

.aviacal-slot-past .aviacal-slot-text {
    color: #6c757d;
    font-style: italic;
}

#aviacal-selected-date{
    max-width: 120px;
}

.aviacal-current-time{
    max-width: 800px;
    margin: auto;
    margin-bottom: 40px;
}

/* Hide current time on mobile */
@media (max-width: 768px) {
    .aviacal-current-time {
        display: none;
    }
}

/* Enhanced drag indicator styling */
.aviacal-drag-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: grab;
    transition: all 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
    /* Touch-friendly properties */
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.aviacal-drag-indicator:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(0.95);
}

.aviacal-drag-indicator:hover {
    background: rgba(40, 167, 69, 1);
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.aviacal-drag-hover {
    background: rgba(40, 167, 69, 1) !important;
    transform: translateX(-50%) scale(1.15) !important;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5) !important;
}

.aviacal-dragging .aviacal-drag-indicator {
    cursor: grabbing !important;
    transform: translateX(-50%) scale(1.2) !important;
    background: rgba(40, 167, 69, 1) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.6) !important;
}

/* Mobile-specific styles for drag indicator */
@media (max-width: 768px) {
    .aviacal-drag-indicator {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .aviacal-drag-indicator::before {
        font-size: 18px;
    }
    
    .aviacal-drag-handle {
        height: 8px;
        min-height: 44px;
    }
    
    .aviacal-drag-handle:hover {
        height: 10px;
    }
}

/* Modal Styles */
.aviacal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviacal-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    min-height: 500px;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.aviacal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.aviacal-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.aviacal-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aviacal-modal-close:hover {
    color: #333;
}

.aviacal-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.aviacal-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
}

/* Mobile styles for modal footer buttons */
@media (max-width: 768px) {
    .aviacal-modal-body {
        padding-bottom: 80px; /* Add padding to prevent content from being hidden behind fixed footer */
    }
    
    .aviacal-modal-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 10px;
        gap: 8px;
        z-index: 10001;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    }
    
    .aviacal-modal-footer .aviacal-btn {
        flex: 1;
        width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 14px;
        min-height: 44px;
    }
}

.aviacal-form-group {
    margin-bottom: 20px;
}

.aviacal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #333;
    font-size: 16px;
}

.aviacal-form-group .required {
    color: #dc3545;
}

.aviacal-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.aviacal-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.aviacal-form-group button {
    margin-left: 10px;
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.aviacal-form-group button:hover {
    background: #005a87;
}

.aviacal-slot-confirmed {
    background: #6c757d;
    color: white;
    border-left: 3px solid #495057;
    cursor: not-allowed;
    position: relative;
    opacity: 0.6;
}

.aviacal-slot-confirmed::before {
    content: '👤';
    margin-right: 5px;
    font-size: 14px;
}

.aviacal-slot-blocked {
    background: #6c757d;
    color: white;
    border-left: 3px solid #495057;
    cursor: not-allowed;
    opacity: 0.6;
}


.aviacal-slot-text {
    font-size: 12px;
    font-weight: 500;
}

/* Loading State */
.aviacal-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Booking Form */
.aviacal-booking-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.aviacal-booking-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.aviacal-form-group {
    margin-bottom: 20px;
}

.aviacal-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #555;
    font-size: 16px;
}

.aviacal-form-group .required {
    color: #e74c3c;
}

.aviacal-form-group input[type="text"],
.aviacal-form-group input[type="email"],
.aviacal-form-group input[type="tel"],
.aviacal-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.aviacal-form-group input:focus,
.aviacal-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.aviacal-form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

.aviacal-form-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.aviacal-btn-outline {
    background: transparent;
    border: 2px solid #007cba;
    color: #007cba;
}

.aviacal-btn-outline:hover {
    background: #007cba;
    color: white;
}

.aviacal-btn-small {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
}

.aviacal-btn-danger {
    background: #dc3545;
    color: white;
}

.aviacal-btn-danger:hover {
    background: #c82333;
}

.aviacal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Booking button specific disabled state */
#aviacal-book-btn.disabled,
#aviacal-book-btn:disabled {
    background-color: #6c757d !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

#aviacal-book-btn.disabled:hover,
#aviacal-book-btn:disabled:hover {
    background-color: #6c757d !important;
    transform: none !important;
}

/* Tax breakdown styles */
.aviacal-price-breakdown {
    font-size: 14px;
    line-height: 1.4;
}

.aviacal-base-price,
.aviacal-tax-amount,
.aviacal-total-price {
    margin: 2px 0;
}

.aviacal-total-price {
    border-top: 1px solid #ddd;
    padding-top: 4px;
    margin-top: 6px;
}

.aviacal-modal-price-breakdown {
    font-size: 14px;
    line-height: 1.4;
}

.aviacal-modal-subtotal,
.aviacal-modal-tax,
.aviacal-modal-total-amount {
    margin: 2px 0;
}

.aviacal-modal-total-amount {
    border-top: 1px solid #ddd;
    padding-top: 4px;
    margin-top: 6px;
}

/* Messages */
.aviacal-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin: 20px 0;
}

.aviacal-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aviacal-booking-container {
        padding: 0px;
        padding-bottom: 120px; /* Extra padding for fixed summary on mobile */
    }
    
    .aviacal-account-actions {
        margin-bottom: 15px;
    }
    
    .aviacal-account-actions .aviacal-btn {
        min-width: 100px;
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .aviacal-date-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .aviacal-date-selector h3 {
        font-size: 16px;
    }
    
    .aviacal-date-selector input[type="date"] {
        min-width: 100%;
        width: 100%;
    }
    
    .aviacal-booking-form {
        padding: 20px;
    }
    
    .aviacal-calendar-grid {
        height: auto;
        overflow-y: hidden;
        overflow-x: auto;
    }
    
    .aviacal-grid-container {
        min-width: 100%;
        font-size: 12px;
    }
    
    .aviacal-time-column-header,
    .aviacal-resource-column-header,
    .aviacal-time-column,
    .aviacal-time-slot {
        padding: 6px 5px;
        min-width: 100px;
    }
    
    .aviacal-time-column-header,
    .aviacal-time-column {
        width: 110px;
        min-width: 110px;
    }
    
    .aviacal-time-slot {
        min-height: 32px;
    }
    
    /* Ensure resource headers are sticky on mobile */
    .aviacal-resource-column-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #f8f9fa !important;
        background-color: #f8f9fa !important;
    }
    
    .aviacal-time-column-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        z-index: 101;
        background: #f8f9fa !important;
        background-color: #f8f9fa !important;
    }
    
    .aviacal-resource-name {
        font-size: 12px;
    }
    
    .aviacal-resource-info {
        font-size: 10px;
    }
    
    .aviacal-slot-text {
        font-size: 10px;
    }
    
    .aviacal-form-actions {
        flex-direction: column;
    }
    
    .aviacal-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .aviacal-calendar-grid {
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
    }
    
    .aviacal-grid-container {
        min-width: 500px;
    }
    
    /* Ensure resource headers are sticky on small mobile */
    .aviacal-resource-column-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 100;
        background: #f8f9fa !important;
        background-color: #f8f9fa !important;
    }
    
    .aviacal-time-column-header {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        left: 0;
        z-index: 101;
        background: #f8f9fa !important;
        background-color: #f8f9fa !important;
    }
}

/* Coupon Validation Styles */
.aviacal-coupon-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aviacal-coupon-input-group input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.aviacal-coupon-input-group input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.aviacal-coupon-input-group .aviacal-btn {
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
}

.aviacal-coupon-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.aviacal-coupon-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aviacal-coupon-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.aviacal-coupon-discount {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}


.aviacal-discount-label,
.aviacal-total-label {
    color: #6c757d;
}

/* Coupon Remove Button Styles */
.aviacal-discount-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.aviacal-discount-label,
.aviacal-total-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.aviacal-discount-amount {
    color: #28a745;
    font-size: 16px;
    font-weight: 600;
}

.aviacal-total-amount {
    color: #007bff;
    font-size: 18px;
    font-weight: 700;
}

.aviacal-remove-coupon-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: auto;
}

.aviacal-remove-coupon-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.aviacal-remove-coupon-btn:active {
    transform: scale(0.95);
}

.aviacal-remove-icon {
    font-weight: bold;
    line-height: 1;
}


.aviacal-total-amount {
    color: #28a745;
    font-weight: bold;
}

/* Responsive coupon styles */
@media (max-width: 768px) {
    .aviacal-coupon-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aviacal-coupon-input-group .aviacal-btn {
        width: 100%;
    }
}

/* Modal Booking Summary Styles */
.aviacal-modal-summary {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 0;
}

.aviacal-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.aviacal-summary-row:last-child {
    margin-bottom: 0;
}

.aviacal-summary-item {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    margin-bottom: 8px;
}

.aviacal-summary-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.aviacal-summary-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.aviacal-pricing-row {
    border-top: 1px solid #dee2e6;
    padding-top: 12px;
    margin-top: 8px;
}

.aviacal-pricing-row .aviacal-summary-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: auto;
    flex: 1;
}

.aviacal-pricing-row .aviacal-summary-label {
    margin-bottom: 0;
    margin-right: 8px;
}

.aviacal-discount-value {
    color: #dc3545;
    font-weight: 600;
}

.aviacal-total-item {
    background-color: #e8f5e8;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.aviacal-total-value {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive modal summary */
@media (max-width: 768px) {
    .aviacal-summary-row {
        flex-direction: column;
    }
    
    .aviacal-summary-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }
    
    .aviacal-summary-label {
        margin-bottom: 0;
        margin-right: 8px;
    }
    
    .aviacal-pricing-row .aviacal-summary-item {
        flex-direction: row;
    }
}

/* Login Choice Modal Styles */
.aviacal-login-choice-content {
    text-align: center;
    padding: 15px 0;
}

.aviacal-login-choice-content p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.aviacal-login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.aviacal-login-option {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.aviacal-login-option:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.15);
    transform: translateY(-2px);
}

.aviacal-login-option h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.aviacal-login-option p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.aviacal-login-option .aviacal-btn {
    width: 100%;
    margin: 0;
}

/* Responsive login options */
@media (max-width: 768px) {
    .aviacal-login-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .aviacal-login-option {
        padding: 15px 12px;
    }
    
    .aviacal-login-choice-content {
        padding: 12px 0;
    }
    
    .aviacal-login-choice-content p {
        margin-bottom: 15px;
        font-size: 13px;
    }
}

/* Login Form Styles */
.aviacal-login-form-content {
    max-width: 400px;
    margin: 0 auto;
}

.aviacal-form-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.aviacal-modal-title-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.aviacal-back-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.aviacal-back-btn:hover {
    background: #f8f9fa;
    color: #007cba;
}

.aviacal-login-form {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
}

.aviacal-login-form .aviacal-form-group {
    margin-bottom: 15px;
}

.aviacal-login-form .aviacal-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 400;
    font-size: 14px;
}

.aviacal-login-form .aviacal-form-group input[type="text"],
.aviacal-login-form .aviacal-form-group input[type="password"],
.aviacal-login-form .aviacal-form-group input[type="email"],
.aviacal-login-form .aviacal-form-group input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.aviacal-form-group input[type="text"],
.aviacal-form-group input[type="password"],
.aviacal-form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.aviacal-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    transform: scale(1.1);
    flex-shrink: 0;
}

.aviacal-login-form .aviacal-form-group input[type="text"]:focus,
.aviacal-login-form .aviacal-form-group input[type="password"]:focus,
.aviacal-login-form .aviacal-form-group input[type="email"]:focus,
.aviacal-login-form .aviacal-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.aviacal-form-group input[type="text"]:focus,
.aviacal-form-group input[type="password"]:focus,
.aviacal-form-group input[type="email"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.aviacal-form-group-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.aviacal-form-group-checkbox label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}


.aviacal-login-form .aviacal-btn-full {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
}

.aviacal-btn-full {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

.aviacal-login-links {
    text-align: center;
    margin-top: 15px;
}

.aviacal-link {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
}

.aviacal-link:hover {
    text-decoration: underline;
}

.aviacal-login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.aviacal-login-success {
    background: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

/* Responsive login form in modal */
@media (max-width: 768px) {
    .aviacal-login-form-content {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .aviacal-login-form {
        padding: 12px;
    }
    
    .aviacal-form-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .aviacal-back-btn {
        padding: 6px;
    }
}

/* Payment Form Styles */
.aviacal-payment-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.aviacal-payment-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
    cursor: pointer;
}

.aviacal-payment-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

#aviacal-stripe-card-element,
#aviacal-clover-card-element {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-height: 50px;
}

.aviacal-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

.aviacal-error-message.show {
    display: block;
}

/* Payment method switching */
.aviacal-payment-form[style*="display: none"] {
    display: none !important;
}

/* Payment form loading states */
.aviacal-payment-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.aviacal-payment-form.loading::after {
    content: "Loading payment form...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

/* Payment method select styling */
#aviacal-payment-method {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#aviacal-payment-method:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

#aviacal-payment-method option {
    padding: 10px;
    background: #fff;
    color: #333;
}

/* Clover HTML form styling */
.aviacal-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.aviacal-form-group-half {
    flex: 1;
}

#aviacal-clover-card-number,
#aviacal-clover-expiry,
#aviacal-clover-cvc,
#aviacal-clover-name {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#aviacal-clover-card-number:focus,
#aviacal-clover-expiry:focus,
#aviacal-clover-cvc:focus,
#aviacal-clover-name:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Clover Elements styling */
#aviacal-clover-card-element,
#aviacal-clover-card-number-element,
#aviacal-clover-card-date-element,
#aviacal-clover-card-cvv-element,
#aviacal-clover-card-name-element {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-height: 50px;
    transition: border-color 0.3s ease;
}

#aviacal-clover-card-element:focus-within,
#aviacal-clover-card-number-element:focus-within,
#aviacal-clover-card-date-element:focus-within,
#aviacal-clover-card-cvv-element:focus-within,
#aviacal-clover-card-name-element:focus-within {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Clover form row styling */
.aviacal-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.aviacal-form-col {
    flex: 1;
}

.aviacal-form-col:first-child {
    flex: 2; /* Card number gets more space */
}

/* Clover loading message styling */
#aviacal-clover-loading {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

#aviacal-clover-loading div {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 10px;
}

#aviacal-clover-loading p {
    margin: 0;
    color: #666;
}

#aviacal-clover-loading p:last-child {
    margin-top: 5px;
    color: #999;
    font-size: 12px;
    margin-bottom: 15px;
}

#aviacal-clover-card-number-element:focus,
#aviacal-clover-card-date-element:focus,
#aviacal-clover-card-cvv-element:focus,
#aviacal-clover-card-name-element:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* Remove Coupon Button */
.aviacal-remove-coupon-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.aviacal-remove-coupon-btn:hover {
    background-color: #c82333;
}

.aviacal-remove-coupon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

/* Modal Section Styling */
.aviacal-guest-info-section,
.aviacal-booking-summary-section,
.aviacal-coupon-section,
.aviacal-payment-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.aviacal-guest-info-section:last-child,
.aviacal-booking-summary-section:last-child,
.aviacal-coupon-section:last-child,
.aviacal-payment-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.aviacal-guest-info-section h4,
.aviacal-booking-summary-section h4,
.aviacal-coupon-section h4,
.aviacal-payment-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.aviacal-booking-summary-section .aviacal-modal-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.aviacal-coupon-section {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.aviacal-coupon-section.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* MyAccount Styles */
.aviacal-my-account-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}

.aviacal-account-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.aviacal-header-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.aviacal-logout-button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: none;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.aviacal-logout-button:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.aviacal-account-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.aviacal-account-header h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    color: #fff;
}

.welcome-message {
    margin: 0;
    font-size: 17px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.aviacal-account-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 8px;
}

.tab-button {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

.tab-button:hover {
    color: #334155;
    background-color: #f1f5f9;
}

.tab-button.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    padding: 0;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content.active {
    display: block;
}

.bookings-section,
.account-section,
.coupons-section {
    margin-bottom: 30px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.bookings-section:hover,
.account-section:hover,
.coupons-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.bookings-section h3,
.account-section h3,
.coupons-section h3 {
    margin: 0 0 24px 0;
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookings-section h3::before,
.account-section h3::before,
.coupons-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.aviacal-bookings-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.aviacal-bookings-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.aviacal-bookings-table th,
.aviacal-bookings-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.aviacal-bookings-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #334155;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.aviacal-bookings-table tbody tr {
    transition: background-color 0.2s ease;
}

.aviacal-bookings-table tbody tr:hover {
    background-color: #f8fafc;
}

.aviacal-bookings-table tbody tr:last-child td {
    border-bottom: none;
}

.status-confirmed {
    color: #28a745;
    font-weight: 500;
}

.status-pending {
    color: #ffc107;
    font-weight: 500;
}

.status-cancelled {
    color: #dc3545;
    font-weight: 500;
}

.status-completed {
    color: #6c757d;
    font-weight: 500;
}

.aviacal-cancel-booking {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aviacal-cancel-booking:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

.aviacal-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.aviacal-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aviacal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.aviacal-button:active {
    transform: translateY(0);
}

.aviacal-button:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.aviacal-coupons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.aviacal-coupon-item {
    padding: 24px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.aviacal-coupon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aviacal-coupon-item:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.aviacal-coupon-item.expired {
    opacity: 0.7;
    border-color: #fca5a5;
}

.aviacal-coupon-item.expired::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.aviacal-coupon-item.limit-reached {
    opacity: 0.8;
    border-color: #fbbf24;
}

.aviacal-coupon-item.limit-reached::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-code {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    letter-spacing: 1px;
}

.coupon-status {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.aviacal-coupon-item.expired .coupon-status {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.aviacal-coupon-item.limit-reached .coupon-status {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
    color: white;
}

.coupon-title {
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
}

.coupon-discount {
    font-size: 24px;
    color: #059669;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 8px;
    border-left: 4px solid #10b981;
    display: inline-block;
}

.coupon-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.coupon-details {
    border-top: 1px solid #e1e5e9;
    padding-top: 12px;
}

.coupon-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

.coupon-detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #666;
}

.detail-value {
    color: #333;
    font-weight: 400;
}

/* Message styles are defined in Account Authentication section above */

/* Coupon Dropdown Styles */
.aviacal-coupon-dropdown-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e1e5e9;
}

.aviacal-coupon-dropdown-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.aviacal-coupon-checkbox-section {
    margin-bottom: 15px;
}

.aviacal-coupon-checkbox-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.aviacal-coupon-checkbox-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
}

.aviacal-coupon-checkbox-list .aviacal-coupon-loading,
.aviacal-coupon-checkbox-list .aviacal-coupon-empty,
.aviacal-coupon-checkbox-list .aviacal-coupon-error {
    padding: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0;
}

.aviacal-coupon-checkbox-list .aviacal-coupon-error {
    color: #d63638;
}

.aviacal-coupon-checkbox-item {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
}

.aviacal-coupon-checkbox-item:hover:not(.disabled) {
    border-color: #0073aa;
    background: #f0f8ff;
}

.aviacal-coupon-checkbox-item.selected {
    border-color: #0073aa;
    background: #e7f3ff;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.aviacal-coupon-checkbox-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f5f5f5;
}

.aviacal-coupon-checkbox-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.aviacal-coupon-checkbox-item.disabled label {
    cursor: not-allowed;
}

.aviacal-coupon-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.aviacal-coupon-checkbox-item.disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.aviacal-coupon-checkbox-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aviacal-coupon-checkbox-label strong {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.aviacal-coupon-checkbox-label .aviacal-coupon-discount-text {
    font-size: 13px;
    color: #28a745;
    font-weight: 500;
}

.aviacal-coupon-checkbox-label .aviacal-coupon-status {
    font-size: 12px;
    color: #d63638;
    font-style: italic;
}

.aviacal-coupon-dropdown-section select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.aviacal-coupon-dropdown-section button {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0.8;
}

.aviacal-coupon-dropdown-section button:hover {
    background: #218838;
    opacity: 1;
}

.aviacal-coupon-dropdown-section button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.aviacal-coupon-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.aviacal-coupon-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.aviacal-coupon-divider span {
    background: #fff;
    padding: 0 15px;
    color: #666;
    font-weight: 500;
}

/* Account Authentication (Login/Register) */
.aviacal-account-auth-container {
    max-width: 1600px;
    margin: 40px auto;
    padding: 0 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    min-height: calc(100vh - 80px);
}

.aviacal-auth-standalone {
    min-height: auto;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff3ff 0%, #f7f1ff 100%);
}

.aviacal-login-container {
    background: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%);
}

.aviacal-register-container {
    background: linear-gradient(135deg, #fef3f2 0%, #fff7ed 100%);
}

.aviacal-auth-card {
    width: 100%;
    max-width: 520px;
    padding: 40px 45px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 25px 80px rgba(67, 56, 202, 0.12), 0 10px 30px rgba(15, 23, 42, 0.08);
    position: relative;
}

.aviacal-auth-card::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    z-index: -1;
    filter: blur(20px);
}

.aviacal-auth-card .aviacal-account-header {
    padding: 0;
    margin-bottom: 25px;
    text-align: center;
}

.aviacal-auth-card .aviacal-account-header h2 {
    margin-bottom: 10px;
    font-size: 30px;
}

.aviacal-auth-card .welcome-message {
    margin: 0;
    color: white;
}

.aviacal-account-auth-container .aviacal-account-header {
    margin-bottom: 30px;
    padding: 35px 30px;
}

.aviacal-account-auth-container .aviacal-account-header h2 {
    font-size: 28px;
}

.aviacal-auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 8px;
}

.auth-tab-button {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-tab-button:hover {
    color: #334155;
    background-color: #f1f5f9;
}

.auth-tab-button.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-tab-content {
    display: none;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    animation: fadeIn 0.3s ease-in;
}

.auth-tab-content.active {
    display: block;
}

.aviacal-auth-messages {
    margin-bottom: 20px;
}

.aviacal-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aviacal-message-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.aviacal-message-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-group-forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.form-group-forgot-password .aviacal-forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-group-forgot-password .aviacal-forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.aviacal-forgot-password-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.aviacal-forgot-password-form .form-group {
    margin-bottom: 20px;
}

.aviacal-forgot-password-form .form-group:last-of-type {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.aviacal-button-secondary {
    background: #e2e8f0;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.aviacal-button-secondary:hover {
    background: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.form-group-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.required {
    color: #ef4444;
    margin-left: 3px;
    font-weight: 600;
}

.aviacal-button-primary {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 15px;
}

/* MyAccount Responsive Design */
@media (max-width: 768px) {
    .aviacal-my-account-container {
        padding: 15px 10px;
        background: #fff;
    }
    
    .aviacal-account-header {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .aviacal-header-actions {
        position: static;
        margin-bottom: 15px;
        z-index: 10;
    }
    
    .aviacal-logout-button {
        width: 100%;
        text-align: center;
        display: block;
        min-height: 44px;
        line-height: 24px;
        padding: 10px 18px;
    }
    
    .aviacal-account-header h2 {
        font-size: 24px;
    }
    
    .welcome-message {
        font-size: 15px;
    }
    
    .aviacal-account-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
        min-width: auto;
    }
    
    .bookings-section,
    .account-section,
    .coupons-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .bookings-section h3,
    .account-section h3,
    .coupons-section h3 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .aviacal-coupons-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .aviacal-bookings-table {
        font-size: 13px;
        border: none;
    }
    
    .aviacal-bookings-table table {
        font-size: 12px;
    }
    
    .aviacal-bookings-table th,
    .aviacal-bookings-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .aviacal-form {
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .aviacal-account-auth-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .auth-tab-content {
        padding: 20px;
    }

    .aviacal-auth-standalone {
        padding: 40px 15px;
    }

    .aviacal-auth-card {
        padding: 28px 24px;
    }

    .aviacal-auth-standalone {
        padding: 40px 15px;
    }

    .aviacal-auth-card {
        padding: 28px 24px;
    }
    
    .aviacal-button-primary {
        padding: 14px;
    }
}