/* Modal V3 - Formulário lateral direito */

/* Overlay */
.modal-v3-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-v3-overlay.active {
    display: block;
    opacity: 1;
}

/* Container do formulário */
.modal-v3-container {
    position: fixed;
    top: 0;
    right: -40%;
    width: 40%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.modal-v3-container.active {
    right: 0;
}

/* Botão fechar */
.modal-v3-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-v3-close:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    transform: rotate(90deg);
}

/* Conteúdo do formulário */
.modal-v3-content {
    padding: 60px 40px 40px;
    height: 100%;
}

.modal-v3-header {
    margin-bottom: 30px;
}

.modal-v3-title {
    color: #1e3a8a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-v3-subtitle {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.modal-v3-info {
    color: #1e3a8a;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 0;
    font-weight: 500;
    padding: 12px 16px;
    background: #eff6ff;
    border-left: 3px solid #1e3a8a;
    border-radius: 4px;
}

/* Container do formulário HubSpot */
.modal-v3-form-container {
    margin-top: 30px;
}

/* Customização do formulário HubSpot */
.modal-v3-form-container .hs-form {
    font-family: inherit;
}

.modal-v3-form-container .hs-form-field {
    margin-bottom: 20px;
}

.modal-v3-form-container .hs-form-field label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.modal-v3-form-container .hs-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.modal-v3-form-container .hs-input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.modal-v3-form-container .hs-button {
    width: 100%;
    background: #1e3a8a;
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.modal-v3-form-container .hs-button:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.modal-v3-form-container .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
}

.modal-v3-form-container .hs-error-msg {
    color: #dc2626;
    font-size: 13px;
}

/* Footer com privacidade */
.modal-v3-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-v3-privacy {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.modal-v3-privacy a {
    color: #1e3a8a;
    text-decoration: underline;
}

.modal-v3-privacy a:hover {
    color: #1e40af;
}

/* Responsive */
@media (max-width: 1200px) {
    .modal-v3-container {
        width: 50%;
        right: -50%;
    }
}

@media (max-width: 968px) {
    .modal-v3-container {
        width: 60%;
        right: -60%;
    }

    .modal-v3-content {
        padding: 50px 30px 30px;
    }

    .modal-v3-title {
        font-size: 24px;
    }

    .modal-v3-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .modal-v3-container {
        width: 100%;
        right: -100%;
    }

    .modal-v3-content {
        padding: 60px 20px 30px;
    }

    .modal-v3-title {
        font-size: 22px;
    }

    .modal-v3-subtitle {
        font-size: 14px;
    }

    .modal-v3-info {
        font-size: 13px;
        padding: 10px 12px;
    }

    .modal-v3-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Animação de entrada */
@keyframes slideInRight {
    from {
        right: -40%;
    }
    to {
        right: 0;
    }
}
