﻿/* Modal style */
.laundro-modal .modal-content {
    border-radius: 16px;
    border: none;
    background: linear-gradient(#f9fcff, #eef6fb);
}

.modal-header {
    border-bottom: none;
    padding: 30px 20px 10px;
}

.modal-subtitle {
    color: #6c9ecf;
    margin-top: 8px;
    font-size: 14px;
}

@media (min-width: 992px) {
    .modal-lg-custom {
        width: 90%;
        max-width: 1100px;
    }
}

.row-eq-height {
    display: table;
    width: 100%;
}

    .row-eq-height > [class*="col-"] {
        display: table-cell;
        float: none;
        vertical-align: top;
    }

/* Cards */
.laundry-card {
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.card-inner {
    background: #fff;
    border-radius: 18px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.12);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

/* Hover effect */
.laundry-card:hover .card-inner {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 123, 255, 0.25);
    border-color: #a8d0f0;
}

/* Selected effect */
.laundry-card.selected .card-inner {
    border: 3px solid #1b6ec2;
    box-shadow: 0 22px 45px rgba(0, 123, 255, 0.35);
    transform: translateY(-6px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
}

    /* Checkmark icon for selected state */
    .laundry-card.selected .card-inner::after {
        content: '✓';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        background: #1b6ec2;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: bold;
        animation: checkmarkPop 0.3s ease;
    }

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Selection badge */
.laundry-card.selected .card-inner h5::after {
    content: 'SELECTED';
    display: block;
    margin-top: 10px;
    font-size: 11px;
    color: #1b6ec2;
    font-weight: bold;
    letter-spacing: 1px;
}

.product-img {
    max-height: 170px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Image scale on selection */
.laundry-card.selected .product-img {
    transform: scale(1.05);
}

.card-inner h5 {
    font-weight: bold;
    color: #2c5d8f;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.laundry-card.selected .card-inner h5 {
    color: #1b6ec2;
}

.modal-footer {
    border-top: none;
    padding-bottom: 25px;
}

/* Button states */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Pulse animation for unselected cards hint */
@keyframes pulseHint {
    0%, 100% {
        box-shadow: 0 12px 25px rgba(0, 123, 255, 0.12);
    }

    50% {
        box-shadow: 0 12px 25px rgba(0, 123, 255, 0.25);
    }
}

.laundry-card:not(.selected) .card-inner {
    animation: pulseHint 2s ease-in-out infinite;
}

.laundry-card.selected ~ .laundry-card:not(.selected) .card-inner,
.laundry-card.selected .card-inner {
    animation: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .laundry-card {
        padding: 10px;
        margin-bottom: 15px;
    }

    .card-inner {
        padding: 20px 15px;
    }

    .product-img {
        max-height: 140px;
    }
}
