/**
 * Booking Card - Design Ultra-Moderne
 */

/* ========================================
   BOOKING CARD CONTAINER
======================================== */

.twm-booking-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    position: sticky;
    top: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.twm-booking-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

/* ========================================
   HEADER SECTION
======================================== */

.twm-booking-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.twm-booking-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.twm-price-section {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.twm-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.twm-price-amount {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.twm-price-currency {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.twm-price-label {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

.twm-urgency-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.twm-urgency-badge i {
    font-size: 14px;
}

/* ========================================
   TRUST INDICATORS
======================================== */

.twm-trust-indicators {
    background: #f8f9fa;
    padding: 16px 24px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #e9ecef;
}

.twm-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.twm-trust-item i {
    color: #28a745;
    font-size: 14px;
}

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

.twm-booking-form {
    padding: 24px;
}

.twm-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.twm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.twm-form-label {
    font-size: 13px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.twm-form-label i {
    color: #667eea;
    font-size: 12px;
}

.twm-form-select,
.twm-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.twm-form-select:focus,
.twm-form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.twm-form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* ========================================
   SOCIAL PROOF
======================================== */

.twm-social-proof {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.twm-social-proof i {
    color: #667eea;
    font-size: 16px;
}

.twm-social-proof span {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

/* ========================================
   TOTAL SECTION
======================================== */

.twm-total-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.twm-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.twm-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.twm-total-price {
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BOOKING BUTTON
======================================== */

.twm-booking-btn {
    width: 100%;
    background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.3);
    position: relative;
    overflow: hidden;
}

.twm-booking-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.twm-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 56, 92, 0.4);
}

.twm-booking-btn:hover::before {
    left: 100%;
}

.twm-booking-btn:active {
    transform: translateY(0);
}

.twm-booking-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.twm-booking-btn i {
    font-size: 16px;
}

/* ========================================
   PAYMENT INFO
======================================== */

.twm-payment-info {
    text-align: center;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.twm-payment-info i {
    font-size: 12px;
}

/* ========================================
   LOGIN REQUIRED
======================================== */

.twm-login-required {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.twm-login-required i {
    font-size: 32px;
    color: #856404;
    margin-bottom: 12px;
    display: block;
}

.twm-login-required p {
    margin: 0 0 16px 0;
    color: #856404;
    font-weight: 700;
    font-size: 16px;
}

.twm-login-btn {
    display: inline-block;
    background: #FF385C;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.twm-login-btn:hover {
    background: #E31C5F;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* ========================================
   AVAILABILITY INDICATOR
======================================== */

.twm-availability-indicator {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFF4E6 0%, #FFEDD5 100%);
    border-left: 4px solid #FFB400;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.twm-availability-indicator i {
    color: #FFB400;
    font-size: 18px;
}

.twm-availability-indicator span {
    font-size: 13px;
    font-weight: 600;
    color: #B76E00;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

@media (max-width: 768px) {
    .twm-booking-card {
        position: static;
        margin-bottom: 32px;
    }
    
    .twm-booking-header {
        padding: 20px;
    }
    
    .twm-price-amount {
        font-size: 36px;
    }
    
    .twm-form-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .twm-trust-indicators {
        flex-direction: column;
        gap: 12px;
        padding: 12px 20px;
    }
    
    .twm-booking-form {
        padding: 20px;
    }
}

/* ========================================
   LOADING STATE
======================================== */

.twm-booking-loading {
    opacity: 0.6;
    pointer-events: none;
}

.twm-booking-loading .twm-booking-btn {
    background: #6c757d;
    cursor: not-allowed;
}

.twm-booking-loading .twm-booking-btn::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
