/* ========================================
   ADOPT A FAMILY POPUP MODAL
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
    border: 2px solid var(--gold);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--gold);
    color: #1a1a2e;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--gold) 0%, #f4d03f 100%);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-radius: 18px 18px 0 0;
}

.modal-header h2 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-header .subtitle {
    font-size: 1.2rem;
    color: #2c2416;
    font-style: italic;
    font-family: 'Georgia', serif;
}

.modal-body {
    padding: 2.5rem 2rem;
    color: #fff;
}

.flyer-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Georgia', serif;
}

.flyer-highlight {
    background: rgba(212, 175, 55, 0.15);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.flyer-highlight h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.flyer-highlight p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 200px;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--gold), #f4d03f);
    color: #1a1a2e;
    border: 2px solid var(--gold);
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.modal-btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* Show popup on page load after 2 seconds */
@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .modal-content {
        max-width: 95%;
        border-radius: 15px;
    }
    
    .modal-header h2 {
        font-size: 2rem;
    }
    
    .modal-header .subtitle {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    .flyer-text {
        font-size: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        min-width: auto;
    }
}
