/* ======================================
   QuickSilver Tours - Gratuity System Styles
   ====================================== */

/* Gratuity Section */
.gratuity-section {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

.gratuity-section h4 {
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.gratuity-section h4 i {
    color: #dc3545;
}

.qs-gratuity-section {
    margin: 15px 0;
}

/* Gratuity Buttons */
.gratuity-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.gratuity-btn {
    background: #ffffff;
    border: 2px solid #28a745;
    color: #28a745;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
}

.gratuity-btn:hover {
    background: #28a745;
    color: white;
    transform: translateY(-1px);
}

.gratuity-btn.active {
    background: #28a745;
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.gratuity-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

/* Custom Gratuity Input */
.custom-gratuity-input {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 15px;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: 15px;
    }
}

.custom-gratuity-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.custom-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 150px;
}

.custom-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.custom-input-group input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
    outline: none;
}

.percentage-symbol {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
}

/* Applied Gratuity Display */
.qs-applied-gratuity {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

.gratuity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.gratuity-item .label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #155724;
    font-weight: 500;
}

.gratuity-percentage-display {
    color: #155724;
    font-weight: 600;
}

.gratuity-amount-display {
    color: #155724;
    font-weight: 600;
    font-size: 1.1em;
}

.remove-gratuity {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.remove-gratuity:hover {
    background: #f8d7da;
}

/* Gratuity Note */
.gratuity-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px 12px;
    margin-top: 15px;
}

.gratuity-note small {
    color: #856404;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.gratuity-note i {
    color: #f39c12;
    font-size: 14px;
    flex-shrink: 0;
}

/* Hidden State */
.gratuity-section[style*="display: none"] {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gratuity-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .gratuity-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .custom-input-group {
        max-width: 120px;
    }
    
    .gratuity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .remove-gratuity {
        align-self: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .gratuity-section {
        padding: 12px;
        margin: 10px 0;
    }
    
    .custom-gratuity-input {
        padding: 12px;
    }
    
    .gratuity-note {
        padding: 8px 10px;
    }
    
    .gratuity-note small {
        font-size: 12px;
    }
}




