/*
 * ======================================================
 * COMPACT MODAL STYLES (for CCT Floating Cart)
 * ======================================================
 */

* {
    box-sizing: border-box;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000000 !important;
    padding: 15px;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-content {
    width: 100%;
    max-height: 95vh; /* Slightly more height for smaller screens */
    background: #121e26; /* Dark background */
    border-radius: 15px; /* Slightly smaller border-radius */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.95); /* Slightly less scale */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white; /* Default text color for dark background */
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Compact Modal Specifics */
.compact-modal {
    max-width: 450px !important; /* Smaller max-width */
}

.modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f1873d, #e07a30); /* Orange gradient */
    color: white;
    position: relative;
}

.compact-modal .modal-header {
    padding: 18px 22px !important; /* Slightly smaller padding */
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.compact-modal .modal-title {
    font-size: 18px !important;
}

.modal-subtitle {
    opacity: 0.9;
    font-size: 13px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15); /* Lighter background for close button */
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-body {
    padding: 25px;
}

.compact-modal .modal-body {
    padding: 20px !important; /* Slightly smaller padding */
}

/* Booking Summary */
.booking-summary {
    background: rgba(241, 135, 61, 0.1); /* Light orange tint */
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(241, 135, 61, 0.2); /* Orange border */
}

.compact-summary {
    padding: 12px !important;
    margin-bottom: 15px !important;
}

.summary-title {
    font-size: 16px;
    margin-bottom: 12px;
    color: white; /* White text for dark background */
    font-weight: 600;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.summary-label {
    color: rgba(255, 255, 255, 0.7); /* Lighter grey for labels */
}

.summary-value {
    font-weight: 600;
    color: white; /* White text */
}

.summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border */
    padding-top: 8px;
    margin-top: 8px;
}

.summary-total .summary-value {
    font-size: 16px;
    color: #f1873d; /* Orange highlight */
    font-weight: 700;
}

/* Form Styles */
.compact-form .form-group {
    margin-bottom: 12px !important; /* Smaller margin */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* Smaller gap */
}

.compact-form .form-label {
    font-size: 12px !important;
    margin-bottom: 4px !important;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8); /* Lighter text */
}

.compact-form .form-input {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid rgba(241, 135, 61, 0.2); /* Orange border */
    border-radius: 8px; /* Smaller border-radius */
    font-size: 13px !important;
    transition: all 0.2s ease;
    background: rgba(241, 135, 61, 0.05); /* Light orange tint */
    font-family: inherit;
    color: white; /* White text for input */
}

.form-input:focus {
    outline: none;
    border-color: #f1873d; /* Orange focus border */
    box-shadow: 0 0 0 3px rgba(241, 135, 61, 0.3); /* Orange shadow */
    background: rgba(241, 135, 61, 0.1); /* Slightly darker orange tint on focus */
}

.compact-form .form-submit {
    width: 100%;
    padding: 12px !important;
    background: linear-gradient(135deg, #f1873d, #e07a30); /* Orange gradient */
    color: white;
    border: none;
    border-radius: 12px; /* Smaller border-radius */
    font-size: 14px !important;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px !important;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(241, 135, 61, 0.4); /* Orange shadow */
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading-text {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .compact-modal {
        max-width: 95% !important;
        margin: 10px !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix für zu breite Datum/Uhrzeit Felder */
    .compact-form .form-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    .form-row {
        gap: 8px !important;
    }
    
    .compact-form .form-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}