/* ================================================================
   Chancery Booking Modal — Frontend Styles
   Wise Digital Marketing © 2026
================================================================ */

:root {
    --cbm-berry: #A62461;
    --cbm-berry-dark: #8a1e50;
    --cbm-teal: #7ABFB8;
    --cbm-charcoal: #2d2d2d;
}

/* Overlay */
.cbm-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cbm-overlay.cbm-open {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.cbm-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px -20px rgba(0, 0, 0, 0.3);
}

.cbm-open .cbm-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.cbm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.cbm-close:hover {
    background: var(--cbm-berry);
    color: #fff;
}

/* Header */
.cbm-header {
    text-align: center;
    padding: 40px 40px 24px;
}

.cbm-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--cbm-charcoal);
    margin: 0 0 8px 0;
}

.cbm-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* Locations */
.cbm-locations {
    padding: 0 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbm-location-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cbm-location-card:hover {
    background: #fff;
    border-color: var(--cbm-berry);
    transform: translateX(4px);
    box-shadow: 0 8px 25px -10px rgba(166, 36, 97, 0.25);
}

/* Location image */
.cbm-location-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--cbm-teal) 0%, #5a9f98 100%);
}

.cbm-location-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbm-location-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbm-location-placeholder svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

/* Location info */
.cbm-location-info {
    flex: 1;
    min-width: 0;
}

.cbm-location-info h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--cbm-charcoal);
    margin: 0 0 4px 0;
}

.cbm-address {
    font-size: 13px;
    color: #666;
    margin: 0 0 2px 0;
    line-height: 1.4;
}

.cbm-phone {
    font-size: 13px;
    color: var(--cbm-berry);
    font-weight: 600;
    margin: 0;
}

/* Arrow */
.cbm-arrow {
    width: 36px;
    height: 36px;
    background: var(--cbm-berry);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cbm-arrow svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.cbm-location-card:hover .cbm-arrow {
    transform: translateX(4px);
}

/* Body scroll lock */
body.cbm-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 600px) {
    .cbm-modal {
        border-radius: 16px;
        max-height: 85vh;
    }
    
    .cbm-header {
        padding: 32px 24px 20px;
    }
    
    .cbm-header h2 {
        font-size: 22px;
    }
    
    .cbm-locations {
        padding: 0 16px 24px;
    }
    
    .cbm-location-card {
        padding: 14px;
        gap: 12px;
    }
    
    .cbm-location-img {
        width: 56px;
        height: 56px;
    }
    
    .cbm-location-info h3 {
        font-size: 15px;
    }
    
    .cbm-address,
    .cbm-phone {
        font-size: 12px;
    }
    
    .cbm-arrow {
        width: 32px;
        height: 32px;
    }
}
