/**
 * Additional Fees Styles
 * File: assets/css/additional-fees.css
 */

/* Main Container */
.rrs-additional-fees-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.rrs-additional-fees-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #ebebeb;
}

/* Header */
.rrs-fees-header {
    margin-bottom: 32px;
    text-align: center;
}

.rrs-fees-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.rrs-fees-subtitle {
    font-size: 16px;
    color: #717171;
    margin: 0;
}

/* Fees List */
.rrs-fees-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Fee Item */
.rrs-fee-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rrs-fee-item:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

.rrs-fee-item.checked {
    background: #f0f4ff;
    border-color: #667eea;
}

/* Custom Checkbox */
.rrs-fee-checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
}

.rrs-fee-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.rrs-fee-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid #b0b0b0;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rrs-fee-check-icon {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.rrs-fee-checkbox:checked + .rrs-fee-checkbox-label {
    background: #667eea;
    border-color: #667eea;
}

.rrs-fee-checkbox:checked + .rrs-fee-checkbox-label .rrs-fee-check-icon {
    opacity: 1;
    transform: scale(1);
}

.rrs-fee-checkbox-label:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Fee Content */
.rrs-fee-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.rrs-fee-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.rrs-fee-icon {
    font-size: 32px;
    line-height: 1;
}

.rrs-fee-info {
    flex: 1;
}

.rrs-fee-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.rrs-fee-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.rrs-fee-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rrs-fee-badge.rrs-refundable {
    background: #d4edda;
    color: #155724;
}

.rrs-fee-description {
    font-size: 14px;
    color: #717171;
    margin: 0;
}

.rrs-fee-amount {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

/* Total Section */
.rrs-fees-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #f7f7f7 0%, #efefef 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.rrs-fees-total-label {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.rrs-fees-total-amount {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    letter-spacing: -0.5px;
}

/* Note */
.rrs-fees-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff9e6;
    border-left: 4px solid #FFA000;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
}

.rrs-fees-note-icon {
    font-size: 20px;
}

/* Integration with Booking Summary */
.rrs-fees-breakdown {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #ebebeb;
}

.rrs-fees-breakdown .rrs-price-label {
    color: #667eea;
    font-weight: 600;
}

.rrs-fees-breakdown .rrs-price-value {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rrs-additional-fees-wrapper {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .rrs-additional-fees-container {
        padding: 24px;
    }

    .rrs-fees-title {
        font-size: 24px;
    }

    .rrs-fees-subtitle {
        font-size: 14px;
    }

    .rrs-fee-item {
        padding: 16px;
        gap: 12px;
    }

    .rrs-fee-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .rrs-fee-main {
        width: 100%;
    }

    .rrs-fee-icon {
        font-size: 28px;
    }

    .rrs-fee-name {
        font-size: 16px;
    }

    .rrs-fee-amount {
        font-size: 20px;
        align-self: flex-end;
    }

    .rrs-fees-total {
        padding: 20px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .rrs-fees-total-amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .rrs-fee-name-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rrs-fees-note {
        font-size: 13px;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rrs-fee-item {
    animation: slideIn 0.3s ease;
}

/* Hover effects */
.rrs-fee-item:hover .rrs-fee-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.rrs-fee-item:hover .rrs-fee-amount {
    color: #667eea;
    transition: color 0.2s ease;
}

/* Editor Preview */
.rrs-editor-preview {
    opacity: 0.9;
}

.rrs-editor-preview .rrs-fee-checkbox {
    pointer-events: none;
}