/**
 * Booking Form - Summary Sidebar Styles
 * Contains: .booking-summary, .summary-item, .summary-total, .promo-input-group
 */

/* Booking Summary */
.booking-summary {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.5rem;
    color: #006db2;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: bold;
}

.summary-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

/* Only Service item has border */
.summary-item:first-of-type {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-value {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    display: inline;
}

/* Remove bold from Bathrooms and Bedrooms (service) in summary */
#summary-bathrooms,
#summary-service {
    font-weight: 400;
}

.summary-price {
    font-weight: bold;
    color: #006db2;
    display: inline;
    float: right;
}

/* For items that should display value and price on same line */
.summary-item-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Promo Code Input */
.promo-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 0.5rem;
    justify-content: space-between;
}

.promo-input-group.error .summary-input {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.promo-input-group.success .summary-input {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.summary-input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.summary-input.summary-input--error {
    border-color: #dc2626;
}

.summary-input.summary-input--success {
    border-color: #0ea5e9;
}

.summary-input:focus {
    outline: none;
    border-color: #006db2;
    box-shadow: 0 0 0 3px rgba(0, 175, 163, 0.15);
}

.summary-apply-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    background: #006db2;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    height: 42px;
    min-width: 70px;
}

.summary-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25);
}

.summary-feedback {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.summary-feedback.success {
    color: #047857;
}

.summary-feedback.error {
    color: #b91c1c;
}

.summary-feedback.info {
    color: #1d4ed8;
}

.summary-applied {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.coupon-applied-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.coupon-applied-text {
    font-weight: 600;
    color: #0284c7;
    font-size: 0.85rem;
}

.coupon-applied-details-card {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin-top: 8px;
}

.coupon-applied-details-card strong {
    color: #1e293b;
    font-weight: 600;
}

.summary-remove-btn {
    border: none;
    background: none;
    color: #dc2626;
    font-weight: 600;
    cursor: pointer;
}

.summary-discount-amount {
    color: #dc2626;
    font-weight: 700;
}

@media (max-width: 576px) {
    .promo-input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-apply-btn {
        width: 100%;
    }
}

/* Extras List in Summary */
.summary-extras-list {
    display: grid;
    gap: 0.5rem;
}

.extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px dashed #e9ecef;
}

.extra-row:last-child {
    border-bottom: none;
}

.extra-row-name {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.extra-row-price {
    font-weight: 700;
    color: #006db2;
    font-size: 0.9rem;
}

.extra-row-tag {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Summary Total */
.summary-total {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid #e9ecef;
    text-align: center;
}

.summary-note {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5563;
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
}

.summary-note--highlight {
    background: #ecfdf5;
    color: #047857;
    font-weight: 600;
    border: 1px solid #bbf7d0;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.total-label {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.35rem;
    color: #333;
}

.total-amount {
    font-size: 2rem;
    color: #28a745;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-summary {
        position: static;
        top: auto;
    }
}

@media (max-width: 900px) {
    .booking-summary {
        position: static;
        top: auto;
    }
}
