/* ═══════════════════════════════════════════════════════════════════
   Imobiliária Visitas — Frontend CSS
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Importar fonte ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Botão Agendar Visita ─────────────────────────────────────── */
.iv-btn-agendar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 106, 159, 0.35);
    letter-spacing: 0.3px;
}

.iv-btn-agendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 159, 0.5);
    background: linear-gradient(135deg, #163250 0%, #255c8a 100%);
}

.iv-btn-agendar:active {
    transform: translateY(0);
}

/* ─── Overlay ────────────────────────────────────────────────────── */
.iv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.72);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: iv-fade-in 0.25s ease;
}

@keyframes iv-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ─── Modal Card ─────────────────────────────────────────────────── */
.iv-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    width: 100%;
    max-width: 540px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: iv-slide-up 0.3s ease;
    font-family: 'Inter', sans-serif;
}

@keyframes iv-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── Botão Fechar ───────────────────────────────────────────────── */
.iv-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}

.iv-modal-close:hover {
    color: #333;
}

/* ─── Cabeçalho do Modal ─────────────────────────────────────────── */
.iv-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.iv-icon-calendar {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.iv-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a3c5e;
    margin: 0 0 6px;
}

.iv-imovel-tag {
    display: inline-block;
    background: #eef4ff;
    color: #1a3c5e;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 6px;
}

.iv-modal-header p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}


/* ─── Formulário ─────────────────────────────────────────────────── */
.iv-form-group {
    margin-bottom: 16px;
    flex: 1;
}

.iv-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.iv-form-group input {
    width: 100%;
    border: 1.5px solid #dde2f0;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #fafbff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.iv-form-group input:focus {
    outline: none;
    border-color: #2d6a9f;
    box-shadow: 0 0 0 3px rgba(45, 106, 159, 0.12);
    background: #fff;
}

.iv-form-row {
    display: flex;
    gap: 14px;
}

/* ─── Alertas ────────────────────────────────────────────────────── */
.iv-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.iv-alert-success {
    background: #d1f7e7;
    color: #0c5e36;
    border-left: 4px solid #28a745;
}

.iv-alert-error {
    background: #fde8e8;
    color: #7b1c1c;
    border-left: 4px solid #e53e3e;
}

/* ─── Botão Enviar ───────────────────────────────────────────────── */
.iv-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #1a3c5e, #2d6a9f);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(45, 106, 159, 0.3);
}

.iv-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 159, 0.45);
}

.iv-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ─── Responsivo ─────────────────────────────────────────────────── */
@media (max-width: 540px) {
    .iv-modal {
        padding: 24px 20px;
    }

    .iv-form-row {
        flex-direction: column;
        gap: 0;
    }
}