/* =========================================
   AGENT CONTACT MODAL
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-body {
    padding: 1.25rem 2rem;
}

.agent-contact-details {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.agent-contact-details p {
    margin: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-contact-details i {
    color: var(--color-primary);
    width: 20px;
}

.modal-contact-form .floating-label-group {
    margin-bottom: 1.5rem;
}

/* =========================================
   FLOATING LABEL INPUTS (Ported for Modal)
   ========================================= */
.floating-label-group {
    position: relative;
}

.premium-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: all 0.2s;
    font-family: var(--font-primary);
}

.premium-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(174, 88, 61, 0.1);
}

.premium-input::placeholder {
    color: #ccc;
    font-weight: 300;
}

/* Label Styling: Always Floating */
.floating-label-group label {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #ffffff;
    padding: 0 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    pointer-events: none;
    transition: all 0.2s;
    line-height: 1;
}

.required {
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 1rem;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }
}
